From 0615ca737409e08f3d9a6eb6b64362d634c57190 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 10 Sep 2018 08:54:02 -0400 Subject: js: escape examples in README.mkd --- js/README.mkd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js') 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: '', })); - // 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: '', })); - // 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: '', })); - // 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: '', })); - // 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. -- cgit v1.2.3