Skip to content

Instantly share code, notes, and snippets.

@lampe
Created February 6, 2015 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lampe/389cc2d40b0af7f5a8ab to your computer and use it in GitHub Desktop.
Save lampe/389cc2d40b0af7f5a8ab to your computer and use it in GitHub Desktop.
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