diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-09-10 08:54:02 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-09-10 08:54:02 -0400 |
commit | 0615ca737409e08f3d9a6eb6b64362d634c57190 (patch) | |
tree | 44149fdffcaa0e8e2073326dfda8bc612fc1e0d5 | |
parent | 983382978b724edae4984182242c88e3e723ae6c (diff) | |
download | luigi-template-0615ca737409e08f3d9a6eb6b64362d634c57190.tar.bz2 luigi-template-0615ca737409e08f3d9a6eb6b64362d634c57190.zip |
js: escape examples in README.mkd
-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. |