{{not}} handlebars helper, for retrieving a value from your project's package.json.
Overview
Conditionally render a block if the condition is false. This block helper is really just a semantic alternative to {{#isnt}}
:
{{#not basename "index"}} <title>{{title}} | Assemble</title> {{else}} <title>Assemble</title>{{/not}}
Please report any bugs or feature requests, thanks!
Quickstart
Install the helper with: npm install handlebars-helper-not
Assemble config
If you use Assemble config and Grunt, in your Gruntfile simply add handlebars-helper-not
to the helpers
property in the Assemble task or target options:
grunt;
Alternatively, you can register the helper with Assemble by adding handlebars-helper-not
to both the devDependencies
and the keywords
array in your project's package.json.
Note that the 'handlebars-helper-not' module must be listed in both devDependencies and the keywords array for Assemble to automatically resolve the helper.
You can now use begin using the helper in your templates.
Author
Jon Schlinkert
License and Copyright
Licensed under the MIT License Copyright (c) Jon Schlinkert, contributors.