Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 587 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 587 Bytes

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