Pipeline allows you to use javascript templates along with your javascript views.
To use your javascript templates, just add them to your ``PIPELINE_JS`` group ::
To use your javascript templates, just add them to your ``JAVASCRIPT`` group ::
PIPELINE_JS = {
PIPELINE['JAVASCRIPT'] = {
'application': {
'source_filenames': (
'js/application.js',
...
...
@@ -37,34 +37,34 @@ Configuration
Template function
.................
By default, Pipeline uses a variant of `Micro Templating <http://ejohn.org/blog/javascript-micro-templating/>`_ to compile the templates, but you can choose your preferred JavaScript templating engine by changing ``PIPELINE_TEMPLATE_FUNC`` ::
By default, Pipeline uses a variant of `Micro Templating <http://ejohn.org/blog/javascript-micro-templating/>`_ to compile the templates, but you can choose your preferred JavaScript templating engine by changing ``PIPELINE['TEMPLATE_FUNC']`` ::
PIPELINE_TEMPLATE_FUNC = 'template'
PIPELINE['TEMPLATE_FUNC'] = 'template'
Template namespace
..................
Your templates are made available in a top-level object, by default ``window.JST``,
but you can choose your own via ``PIPELINE_TEMPLATE_NAMESPACE`` ::
but you can choose your own via ``PIPELINE['TEMPLATE_NAMESPACE']`` ::
raisetemplate.TemplateSyntaxError('%r requires exactly one argument: the name of a group in the PIPELINE_CSS setting'%token.split_contents()[0])
raisetemplate.TemplateSyntaxError('%r requires exactly one argument: the name of a group in the PIPELINE.STYLESHEETS setting'%token.split_contents()[0])
raisetemplate.TemplateSyntaxError('%r requires exactly one argument: the name of a group in the PIPELINE_JS setting'%token.split_contents()[0])
raisetemplate.TemplateSyntaxError('%r requires exactly one argument: the name of a group in the PIPELINE.JAVASVRIPT setting'%token.split_contents()[0])