{"action":"created","issue":{"url":"https://api.github.com/repos/helpers/handlebars-helper-prettify/issues/9","repository_url":"https://api.github.com/repos/helpers/handlebars-helper-prettify","labels_url":"https://api.github.com/repos/helpers/handlebars-helper-prettify/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/helpers/handlebars-helper-prettify/issues/9/comments","events_url":"https://api.github.com/repos/helpers/handlebars-helper-prettify/issues/9/events","html_url":"https://github.com/helpers/handlebars-helper-prettify/issues/9","id":139602592,"number":9,"title":"Wont run / does nothing","user":{"login":"SuneRadich","id":1249306,"avatar_url":"https://avatars.githubusercontent.com/u/1249306?v=3","gravatar_id":"","url":"https://api.github.com/users/SuneRadich","html_url":"https://github.com/SuneRadich","followers_url":"https://api.github.com/users/SuneRadich/followers","following_url":"https://api.github.com/users/SuneRadich/following{/other_user}","gists_url":"https://api.github.com/users/SuneRadich/gists{/gist_id}","starred_url":"https://api.github.com/users/SuneRadich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuneRadich/subscriptions","organizations_url":"https://api.github.com/users/SuneRadich/orgs","repos_url":"https://api.github.com/users/SuneRadich/repos","events_url":"https://api.github.com/users/SuneRadich/events{/privacy}","received_events_url":"https://api.github.com/users/SuneRadich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T15:07:01Z","updated_at":"2016-03-09T15:19:42Z","closed_at":null,"body":"I am trying to use this helper in my assemble setup. I am quite new to assemble, so bear with me if what I am asking is something I should know :)\r\n\r\nIn my assemble configuration I have added:\r\n\r\n    options: {\r\n        helpers: [\r\n            'handlebars-helpers-prettify'\r\n        ],\r\n        prettify: {\r\n            mode: 'html',  // 'html' is defined by default\r\n            condense: true,\r\n            padcomments: true,\r\n            indent: 40\r\n        },\r\n        flatten: false,        \r\n        partials: ['<%= package.html %>/_partials/**/*.html'],\r\n        layout: '<%= package.html %>/_layouts/main.html'\r\n    },\r\n\r\n    pages: {\r\n        files: [\r\n            { \r\n                expand: true, \r\n                cwd: '<%= package.html %>/', \r\n                src: [\r\n                    \r\n                    //All pages and subfolders\r\n                    '**/*.html',\r\n  \r\n                    //except the partials and layouts\r\n                    '!_partials/**',\r\n                    '!_layouts/**'\r\n                ], \r\n                dest: '<%= package.prototype %>/'\r\n            }\r\n        ]\r\n    }\r\n\r\nIf I then in a handlebars template use code like this\r\n\r\n    {{#prettify}}\r\n        <h1>This is a test</h1><p>Just a test</p>\r\n    {{/prettify}}\r\n\r\nI would expect the output from Assemble would be nicely formatted like this:\r\n\r\n    <h1>This is a test</h1>\r\n    <p>Just a test</p>\r\n\r\nHowever, it seems the formatting is not changed at all.\r\n\r\nIf I however then try to do this\r\n\r\n    {{#prettify indent=\"4\"}}\r\n        <h1>This is a test</h1><p>Just a test</p>\r\n    {{/prettify}}\r\n\r\nMy grunt setup fails with:\r\n\r\n    Assembling _prototype/components/component.html ERROR\r\n    Warning: ((helpers.prettify || (depth0 && depth0.prettify)) || helpers.helperMissing).call is not a function      Use --force to continue.\r\n\r\nIt is as if the helper is registered (since the tags `{{#prettify}}` and `{{/prettify}}` are not ignored. What am I doing wrong.\r\n\r\nConfig from my packages.json\r\n\r\n    \"grunt-assemble\": \"^0.4.0\",\r\n    \"handlebars-helper-prettify\": \"^0.2.1\",\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/helpers/handlebars-helper-prettify/issues/comments/194340675","html_url":"https://github.com/helpers/handlebars-helper-prettify/issues/9#issuecomment-194340675","issue_url":"https://api.github.com/repos/helpers/handlebars-helper-prettify/issues/9","id":194340675,"user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T15:19:42Z","updated_at":"2016-03-09T15:19:42Z","body":"```js\r\n    helpers: [\r\n        'handlebars-helpers-prettify'\r\n    ],\r\n```\r\n\r\nLooks like there's an extra `s` on `helper`.  It should be `handlebars-helper-prettify`\r\n\r\nThe reason you didn't get the error with:\r\n\r\n```handlebars\r\n{{#prettify}}\r\n    <h1>This is a test</h1><p>Just a test</p>\r\n{{/prettify}}\r\n```\r\n\r\nis because handlebars sees that as a missing variable and just doesn't rendering anything.\r\n\r\nWhen you added the `{{#prettify indent=\"4\"}}` handlebars knows that you were trying to use a helper and throws an error that it cannot find the helper."}}