All Downloads are FREE. Search and download functionalities are using the official Maven repository.

vendor.require.tmpl.js Maven / Gradle / Ivy

The newest version!
/*jshint unused:false */
define(['module'], function (module) {
  'use strict';

  var masterConfig = (module.config && module.config()) || {};

  return {
    load: function (name, require, onLoad, config) {
      var url = require.toUrl(name);
      require(['text!'+name], function (text) {
        masterConfig.registerTemplate && masterConfig.registerTemplate(url, text);
        onLoad(text);
      });
    }
  };

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy