Skip to content

Instantly share code, notes, and snippets.

@benstr
Created October 29, 2014 09:03
Show Gist options
  • Save benstr/94aeec81f6e4a13c4fd1 to your computer and use it in GitHub Desktop.
Save benstr/94aeec81f6e4a13c4fd1 to your computer and use it in GitHub Desktop.
Blaze Snippets
// Put a template into the DOM. get() must include a 0.
Blaze.render(Template.projectDetails, $('#main-content').get(0));
// To remove you must pass the view object
Blaze.remove(Blaze.getView($('#project-details').get(0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment