Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cortex-handlebars-compiler

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cortex-handlebars-compiler

Handlebar helpers for cortex template.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

cortex-handlebars-compiler NPM version Build Status Dependency Status

Handlebar helpers for cortex template.

Install

$ npm install cortex-handlebars-compiler --save

Usage

var compiler = require('cortex-handlebars-compiler');

compiler(options)

Returns the compiler.Compiler instance.

Class: compiler.Compiler(options)

  • options Object
    • pkg Object object of cortex.json
    • root path the root directories of packages
    • shrinkWrap Object object of cortex-shrinkwrap.json
    • ext String='.js' the extension of module files, default to '.js'

.compile(template)

  • template String template string

Parses the template string and returns the parsed function.

.register(helper, handler)

  • helper String the name of the helper
  • handler function(title, helper_options) see handlebars for details

Registers a new helper handler.

Returns this.

Built-in helpers

{{{facade '<package-name>'}}}

The first 'facade' will also output the engines and configurations.

License

MIT

Keywords

FAQs

Package last updated on 27 May 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc