🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

helper-process

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helper-process

{{process}} handlebars helper for processing raw templates in included content, with the correct context.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

helper-process NPM version

{{process}} handlebars helper for processing raw templates in included content, with the correct context.

Quickstart

Install the helper with: npm install handlebars-helper-process --save

Usage with Assemble

If you use Assemble and Grunt, you have some simple options for adding helpers.

Option #1

Add handlebars-helper-process to the helpers property in the Assemble task or target options in your Gruntfile:

grunt.initConfig({
  assemble: {
    options: {
      // You may either register the helper this way.
      helpers: ['handlebars-helper-process', 'foo/*.js']
    },
    files: {}
  }
});

Option #2

Or, add the handlebars-helper-process module to both the devDependencies and the keywords array of your project's the package.json, enabling Assemble will automatically resolve the helper. Example:

{
  "name": "your-project",
  "dependencies": {
    "handlebars-helper-process": "*"
  },
  "keywords": [
    "handlebars-helper-process"
  ]
}

With that completed, you may now use the {{#process}} helper in your templates:

{{#each pages}}
  {{#isnt basename 'index'}}
    {{#process}}
      {{{page}}}
    {{/process}}
  {{/isnt}}
{{/each}}

Please report any bugs or feature requests, thanks!

Contributing

Please see the Contributing to helper-process guide for information on contributing to this project.

Author

Jon Schlinkert

License

Copyright (c) 2013 Jon Schlinkert Released under the MIT license

This file was generated on Wednesday, November 6, 2013.

Keywords

helper-process

FAQs

Package last updated on 07 Nov 2013

Did you know?

Socket

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.

Install

Related posts