Skip to content

Instantly share code, notes, and snippets.

@joachimhs
Created March 31, 2012 06:46
Show Gist options
  • Save joachimhs/2260072 to your computer and use it in GitHub Desktop.
Save joachimhs/2260072 to your computer and use it in GitHub Desktop.
handlebars helper disqus
Handlebars.registerHelper('disqus', function(property) {
var value = '<script type="text/javascript" src="http://joachimhs.disqus.com/combination_widget.js?num_items=5&hide_mods=0&color=blue&default_tab=people&excerpt_length=200"></script><a href="http://disqus.com/">Powered by Disqus</a>';
console.log(value);
return new Handlebars.SafeString(value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment