mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Rename inclusion macros (with back-compat) to: Template.dynamic, Template.contentBlock, Template.elseBlock. Update all uses and mentions of UI in the repo, unless they are there for back-compat or testing reasons. To do: Run unit tests. Update docs for UI.dynamic. Document Template.contentBlock and Template.elseBlock.
10 lines
228 B
JavaScript
10 lines
228 B
JavaScript
renderToDiv = function (template, optData) {
|
|
var div = document.createElement("DIV");
|
|
if (optData == null) {
|
|
Blaze.render(template, div);
|
|
} else {
|
|
Blaze.renderWithData(template, optData, div);
|
|
}
|
|
return div;
|
|
};
|