Created
February 6, 2015 00:06
-
-
Save lampe/389cc2d40b0af7f5a8ab 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
rawHTML = HTML.Raw("<h1> hello </h1>"); // your HTML String from twitter | |
div = document.getElementsByClassName("page-footer")[0] // somehow select a DOM element | |
tmpl = new Blaze.Template("Template.hello2", // create a template | |
function(){ | |
view = this; | |
return rawHTML | |
} | |
); | |
var renderedTmpl = Blaze.render(tmpl, div); // and render it ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment