mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-20 04:11:44 +02:00
Merge pull request #488 from peterkokot/patch-twig
Syntax highlighting for Twig examples enabled
This commit is contained in:
@@ -18,7 +18,7 @@ there is a slight performance hit, however this is very minimal when proper cach
|
|||||||
|
|
||||||
Using the [Twig] library.
|
Using the [Twig] library.
|
||||||
|
|
||||||
{% highlight text %}
|
{% highlight html+jinja %}
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{% include 'header.html' with {'title': 'User Profile'} %}
|
{% include 'header.html' with {'title': 'User Profile'} %}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ Using the [Twig] library.
|
|||||||
|
|
||||||
Using the [Twig] library.
|
Using the [Twig] library.
|
||||||
|
|
||||||
{% highlight text %}
|
{% highlight html+jinja %}
|
||||||
{% raw %}
|
{% raw %}
|
||||||
// template.html
|
// template.html
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ Using the [Twig] library.
|
|||||||
{% endraw %}
|
{% endraw %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
{% highlight text %}
|
{% highlight html+jinja %}
|
||||||
{% raw %}
|
{% raw %}
|
||||||
// user_profile.html
|
// user_profile.html
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user