UNPKG

jetfuel-blackbox

Version:

Currently, BlackBox is a boilerplate client-side application framework, built on top of the JetFuel build system and Grunt, Backbone, RequireJS, JetRunner unit test server (Mocha BDD/TDD test framework + PhantomJS + SauceLabs cloud integration), Dust (and Plate Django port) for templating (both client and server-side), Sass, Express dynamic web server, etc. BlackBox is the template used for JetFuel's basic `init` command.

18 lines (14 loc) 509 B
define('plugin/plate/loader', ['plate'], function(plate) { /** * This function is required to be synchronous. This is done by * flagging the XMLHttpRequest instance to be synchronous. */ plate.Template.Meta.registerPlugin('loader', function(templatePath) { var template; require(['resource!templates/' + templatePath + '?text,sync'], function(tmpl) { template = tmpl; }); return new plate.Template(template); }); return plate; });