0.0.6 • Published 12 years ago

ss-clientangular v0.0.6

Weekly downloads
27
License
-
Repository
github
Last release
12 years ago

Example Usage

Include this line in your app.js;

    /**
     * Transformer fir angualr Id templates
     * @param  {String} template [description]
     * @param  {String} path     [description]
     * @param  {String} id       [description]
     * @return {Strung}          Transformed template id for '<script type="text/ng-template" id="' + id + '.html">' + template + '</script>'
     */
    function bootstrapTemplateTransformer(template, path, id) {
        /*jshint undef: false, unused: false */
        return 'custom-template-id';
    }
    
...

    ss.client.templateEngine.use(require('ss-clientangular'), '', {idTransformer: bootstrapTemplateTransformer});

Templates are available in the JT global namespace, var templateString = JT['templateName'](locals);

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago