New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

handlebars-amd

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

handlebars-amd

Compiles handlebars templates into an AMD-compatible module.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
14
250%
Maintainers
1
Weekly downloads
 
Created
Source

Handlebars AMD

Handlebars is a cool template system that allows you to precompile your templates as JavaScript for great performance. One thing that Handlebars could stand to play nicely with is AMD module loaders (like RequireJS and CloudFlareJS). This node module allows you to compile entire directories of Handlebars templates (recursively) into a named AMD module.

Installing

# For command line:
npm install -g handlebars-amd

# For Node apps:
npm install handlebars-amd

Usage

On the command line:

handlebars-amd -i ./my/templates -n 'app/templates' -m

In your web server:

require('handlebars-amd').compile(
    './my/templates', // Template directory.. 
    'app/templates', // Resulting module name.. 
    true // Minify!
).then(function(compiled) {

    // Compiled is a string of JavaScript that contains your module!
});

FAQs

Package last updated on 07 May 2012

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