handlebars-parser

1.0.0 • Public • Published

handlebars-parser

Get requested paths from Handlebars templates.

var HandlebarsParser = require('handlebars-parser');
var Handlebars = require('handlebars');
// other deps

var parser = new HandlebarsParser();
var template = Handlebars.parse(" *some template string* ");
var requestedPaths = parser.getPaths(template);
// other code

requirements

The template passed in the getPaths-function should be parsed with handlebars version 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i handlebars-parser

Weekly Downloads

14

Version

1.0.0

License

BSD-2-Clause

Last publish

Collaborators

  • davidrip