Commit 632d0b2f by Jared Scott

Adding Template instructions for Handlebars

Fixing a grammar issue in the mustache section as well as adding settings for handlebars support
parent 66e6b236
...@@ -66,7 +66,7 @@ Mustache ...@@ -66,7 +66,7 @@ Mustache
........ ........
To use it with `Mustache <https://github.com/janl/mustache.js>`_ you will need To use it with `Mustache <https://github.com/janl/mustache.js>`_ you will need
this some extra javascript :: some extra javascript ::
Mustache.template = function(templateString) { Mustache.template = function(templateString) {
return function() { return function() {
...@@ -78,11 +78,20 @@ this some extra javascript :: ...@@ -78,11 +78,20 @@ this some extra javascript ::
}; };
}; };
And use this settings :: And use these settings ::
PIPELINE_TEMPLATE_EXT = '.mustache' PIPELINE_TEMPLATE_EXT = '.mustache'
PIPELINE_TEMPLATE_FUNC = 'Mustache.template' PIPELINE_TEMPLATE_FUNC = 'Mustache.template'
Handlebars
.........
To use it with `Handlebars <http://handlebarsjs.com/>`_, use the following settings ::
PIPELINE_TEMPLATE_EXT = '.handlebars'
PIPELINE_TEMPLATE_FUNC = 'Handlebars.compile'
PIPELINE_TEMPLATE_NAMESPACE = 'Handlebars.templates'
Prototype Prototype
......... .........
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment