mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-19 11:51:26 +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.
|
||||
|
||||
{% highlight text %}
|
||||
{% highlight html+jinja %}
|
||||
{% raw %}
|
||||
{% include 'header.html' with {'title': 'User Profile'} %}
|
||||
|
||||
@@ -33,7 +33,7 @@ Using the [Twig] library.
|
||||
|
||||
Using the [Twig] library.
|
||||
|
||||
{% highlight text %}
|
||||
{% highlight html+jinja %}
|
||||
{% raw %}
|
||||
// template.html
|
||||
|
||||
@@ -52,7 +52,7 @@ Using the [Twig] library.
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight text %}
|
||||
{% highlight html+jinja %}
|
||||
{% raw %}
|
||||
// user_profile.html
|
||||
|
||||
@@ -70,4 +70,4 @@ Using the [Twig] library.
|
||||
[article_templating_engines]: http://fabien.potencier.org/article/34/templating-engines-in-php
|
||||
[Twig]: http://twig.sensiolabs.org/
|
||||
[Smarty]: http://www.smarty.net/
|
||||
[Mustache]: http://mustache.github.io/
|
||||
[Mustache]: http://mustache.github.io/
|
||||
|
Reference in New Issue
Block a user