derby-parsing

v0.8.0
Add HTML template parsing to Derby
derby

derby-parsing

This module contains the HTML-based template parsing for DerbyJS. Given a template source string, it produces parsed Templates and Expressions as defined in derbyjs/derby-templates.

Installation

npm install derby-parsing

Example usage

var derbyParsing = require('derby-parsing');

var templateSource = '<title>{{_page.title}}</title>';
var template = derbyParsing.createTemplate(templateSource);

Tests

npm test
npm i derby-parsing

Metadata

  • MIT
  • Whatever
  • Nate Smith
  • released 8/30/2019

Downloads