socketstream/socketstream

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

Summary

Maintainability
A
1 hr
Test Coverage
// Produces templates for Ember.js
// Note Ember compiles these Handlebars templates one time only when you call Em.Application.create();
'use strict';

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