Skip to content

Instantly share code, notes, and snippets.

@jonathanKingston
Created April 26, 2012 17:42
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 jonathanKingston/2501225 to your computer and use it in GitHub Desktop.
Save jonathanKingston/2501225 to your computer and use it in GitHub Desktop.
rendering of diff templates
Handlebars.registerHelper('content', function(something) {
if(something) {
Meteor.ui.chunk(function() {Template.hello({first: "Alyssa", last: "Hacker"});});
} else {
Meteor.ui.chunk(function() {Template.something_else({first: "silly", last: "bobby"});});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment