aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-10 08:54:02 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-10 08:54:02 -0400
commit0615ca737409e08f3d9a6eb6b64362d634c57190 (patch)
tree44149fdffcaa0e8e2073326dfda8bc612fc1e0d5
parent983382978b724edae4984182242c88e3e723ae6c (diff)
downloadluigi-template-0615ca737409e08f3d9a6eb6b64362d634c57190.tar.bz2
luigi-template-0615ca737409e08f3d9a6eb6b64362d634c57190.zip
js: escape examples in README.mkd
-rw-r--r--js/README.mkd8
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 &lt;Paul&gt;"
+ // prints "hello &amplt;Paul&amp;gt;"
The built-in templates are:
@@ -100,7 +100,7 @@ of global filters (`Luigi.FILTERS`), like so:
name: '<Paul>',
}));
- // prints "hello bar-&lt;Paul&gt;-bar"
+ // prints "hello bar-&amp;lt;Paul&amp;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-&lt;Paul&gt;-bar"
+ // prints "hello bar-&amp;lt;Paul&amp;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-&lt;Paul&gt;-tail"
+ // prints "hello head-&amp;lt;Paul&amp;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.