mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-12 08:43:58 +02:00
syntax highlighting for Twig examples enabled
This commit is contained in:
@@ -20,7 +20,7 @@ when proper caching is used.
|
||||
|
||||
Using the [Twig](http://twig.sensiolabs.org/) library.
|
||||
|
||||
{% highlight text %}
|
||||
{% highlight html+jinja %}
|
||||
{% raw %}
|
||||
{% include 'header.html' with {'title': 'User Profile'} %}
|
||||
|
||||
@@ -35,7 +35,7 @@ Using the [Twig](http://twig.sensiolabs.org/) library.
|
||||
|
||||
Using the [Twig](http://twig.sensiolabs.org/) library.
|
||||
|
||||
{% highlight text %}
|
||||
{% highlight html+jinja %}
|
||||
{% raw %}
|
||||
// template.html
|
||||
|
||||
@@ -54,7 +54,7 @@ Using the [Twig](http://twig.sensiolabs.org/) library.
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight text %}
|
||||
{% highlight html+jinja %}
|
||||
{% raw %}
|
||||
// user_profile.html
|
||||
|
||||
@@ -66,4 +66,4 @@ Using the [Twig](http://twig.sensiolabs.org/) library.
|
||||
<p>Hello, {{ name }}</p>
|
||||
{% endblock %}
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
{% endhighlight %}
|
||||
|
Reference in New Issue
Block a user