Created
March 31, 2012 06:46
-
-
Save joachimhs/2260072 to your computer and use it in GitHub Desktop.
handlebars helper disqus
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
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