Permalink
Browse files

improved code comments on helper template

  • Loading branch information...
1 parent d715152 commit d727942974f9905096af8adeab663ff8336dbce1 @jonschlinkert jonschlinkert committed Aug 7, 2013
Showing with 6 additions and 2 deletions.
  1. +1 −1 package.json
  2. +5 −1 root/name.js
View
@@ -1,6 +1,6 @@
{
"name": "grunt-init-helper",
- "version": "0.1.3",
+ "version": "0.1.4",
"description": "Quickly create a Handlebars helper that can easily be used with Assemble",
"homepage": "https://github.com/assemble/grunt-init-helper/",
"author": {
View
@@ -1,7 +1,11 @@
(function() {
module.exports.register = function(Handlebars, options) {
- // Customize this helper
+ /**
+ * Helper name
+ * @param {[type]} str [description]
+ * @return {[type]} [description]
+ */
Handlebars.registerHelper('{%= name %}', function(str) {
var content = '<strong>' + str + '</strong>';
return new Handlebars.SafeString(content);

0 comments on commit d727942

Please sign in to comment.