1.0.0 • Published 9 years ago

handlebars-path v1.0.0

Weekly downloads
14
License
-
Repository
github
Last release
9 years ago

view on npm npm module downloads per month Dependency Status

handlebars-path

Handlebars helper mappings for the node.js path module. Works server and client-side (using browserify).

  • path-normalize
  • path-join
  • path-resolve
  • path-relative
  • path-basename
  • path-extname

Install

$ npm install handlebars-path

Usage

var handlebars = require("handlebars");
var handlebarsPath = require("handlebars-path");

/* this will register the handlebars-path helpers on your handlebars instance */
handlebars.registerHelper(handlebarsPath);

Examples

the template

Filename: {{path-basename "parsnip.veg" ".veg"}}.txt

returns

Filename: parsnip.txt
1.0.0

9 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago