
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
handlebars-helper-include
Advanced tools
Handlebars helper for using includes.
Use npm to install the package: npm i handlebars-helper-include.
Register the helper in the assemble task in your project's Gruntfile to begin using it in templates:
grunt.initConfig({
assemble: {
options: {
// the 'handlebars-helper-include' npm module must also be listed in
// devDependencies for assemble to automatically resolve the helper
helpers: ['handlebars-helper-include', 'foo/*.js']
},
files: {
'_gh_pages/': ['templates/*.hbs']
}
}
});
Tell assemble where to find the includes by adding an includes property to the task options:
assemble: {
options: {
includes: ['abc.hbs', 'xyz.hbs', 'foo/*.hbs']
},
files: {
'_gh_pages/': ['templates/*.hbs']
}
}
Define the name of the helper to include, without file extension:
{{include 'abc'}}
Optionally pass a context as the second parameter:
{{include 'xyz' this}}
Globbing patterns may also be used:
{{include 'chapter-*'}}
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on November 09, 2014.
FAQs
Handlebars helper for using includes.
The npm package handlebars-helper-include receives a total of 105 weekly downloads. As such, handlebars-helper-include popularity was classified as not popular.
We found that handlebars-helper-include demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.