-
-
Save devonbarrett/ecbdcde710fbdab980c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="windowFrame"> | |
<div class="framing-classes"> | |
{{> Template.dynamic | |
template=contentTemplate | |
data=contentData}} | |
</div> | |
<div> | |
<template name="myWindow"> | |
<h1>{{title}}</h1> | |
<p>Various stuff and whatnot</p> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makeWindow(contentTemplate, data) { | |
Blaze.renderWithData( | |
Template.windowFrame, | |
{ | |
contentTemplate: contentTemplate, | |
contentData: data | |
}, | |
document.body); | |
} | |
// render Template.windowFrame with Template.myWindow inside it: | |
makeWindow("myWindow", {title:"Fancy Title"}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment