javascript - How to namespace with twig.js -


i can see twig.js can use namespacing template paths: https://github.com/justjohn/twig.js/wiki#user-content-namespaces

where you specify namespaces? here in documentation:

var template = twig.twig({     data: your-template,     namespaces: { 'my-project': 'path/to/views/folder/' } }).render(); 

that specification...i.e. next lines of doc:

ex:

{# your-template.twig #} {% extends "my-project::template.twig" %} 

the "my-project::" point "path/to/views/folder/".


Comments