mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 13:26:37 +00:00
Fix codeblock
This commit is contained in:
committed by
Fabien Potencier
parent
4b2e9ef2a7
commit
adba4c2a2b
+2
-2
@@ -551,7 +551,7 @@ include in your templates:
|
|||||||
``interpolateProvider`` service, for instance at the module initialization
|
``interpolateProvider`` service, for instance at the module initialization
|
||||||
time:
|
time:
|
||||||
|
|
||||||
..code-block:: javascript
|
.. code-block:: javascript
|
||||||
|
|
||||||
angular.module('myApp', []).config(function($interpolateProvider) {
|
angular.module('myApp', []).config(function($interpolateProvider) {
|
||||||
$interpolateProvider.startSymbol('{[').endSymbol(']}');
|
$interpolateProvider.startSymbol('{[').endSymbol(']}');
|
||||||
@@ -559,7 +559,7 @@ include in your templates:
|
|||||||
|
|
||||||
* For Twig, change the delimiters via the ``tag_variable`` Lexer option:
|
* For Twig, change the delimiters via the ``tag_variable`` Lexer option:
|
||||||
|
|
||||||
..code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
$env->setLexer(new Twig_Lexer($env, array(
|
$env->setLexer(new Twig_Lexer($env, array(
|
||||||
'tag_variable' => array('{[', ']}'),
|
'tag_variable' => array('{[', ']}'),
|
||||||
|
|||||||
Reference in New Issue
Block a user