diff options
-rw-r--r-- | js/README.mkd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/README.mkd b/js/README.mkd index 27f2bd2..4df29a2 100644 --- a/js/README.mkd +++ b/js/README.mkd @@ -68,7 +68,7 @@ a built-in filter: name: '<Paul>', })); - // prints "hello <Paul>" + // prints "hello &lt;Paul&gt;" The built-in templates are: @@ -100,7 +100,7 @@ of global filters (`Luigi.FILTERS`), like so: name: '<Paul>', })); - // prints "hello bar-<Paul>-bar" + // prints "hello bar-&lt;Paul&gt;-bar" You can also create a custom filter and limit it to a particular template by passing a custom filter hash as the second parameter to the @@ -118,7 +118,7 @@ template by passing a custom filter hash as the second parameter to the name: '<Paul>', })); - // prints "hello bar-<Paul>-bar" + // prints "hello bar-&lt;Paul&gt;-bar" You can pass arguments to your custom filters. Here's an example: @@ -141,7 +141,7 @@ You can pass arguments to your custom filters. Here's an example: name: '<Paul>', })); - // prints "hello head-<Paul>-tail" + // prints "hello head-&lt;Paul&gt;-tail" If you have a lot of separate templates, or a few large templates, then it's a good idea to use a template cache. |