socketstream/socketstream

View on GitHub
lib/client/template_engines/angular.js

Summary

Maintainability
A
1 hr
Test Coverage
// Produces inline templates for Angular.js
// Use them in conjunction with `ng-view`. Note the `.html` at the end of each template name which is automatically appended

'use strict';

exports.init = function() {
  return {
    name: 'Angular.js',
    process: function(template, path, id) {
      return '<script type="text/ng-template" id="' + id + '.html">' + template + '</script>';
    }
  };
};