mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
By choosing names like Template.registerHelper(…) and Template.instance() (instead of Blaze), we can separate the “Templates” section and the “Blaze” section of the docs.
19 lines
466 B
JavaScript
19 lines
466 B
JavaScript
UI = Blaze;
|
|
|
|
Blaze.ReactiveVar = ReactiveVar;
|
|
UI._templateInstance = Blaze.Template.instance;
|
|
|
|
Handlebars = {};
|
|
Handlebars.registerHelper = Blaze.registerHelper;
|
|
|
|
Handlebars._escape = Blaze._escape;
|
|
|
|
// Return these from {{...}} helpers to achieve the same as returning
|
|
// strings from {{{...}}} helpers
|
|
Handlebars.SafeString = function(string) {
|
|
this.string = string;
|
|
};
|
|
Handlebars.SafeString.prototype.toString = function() {
|
|
return this.string.toString();
|
|
};
|