handlebars-path
Handlebars helper mappings for the node.js path module
Last updated 11 years ago by 75lb .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install handlebars-path 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (11 years ago)

4 Versions

  • 1.0.0                                ...           11 years ago
  • 0.1.0                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |