prescott

0.3.0 • Public • Published

Prescott

A super-simple templating language

Npm page

About

Prescott is a templating language based on custom html/xml elements and extended with a mustache syntax for values {{ example }}. It is made possible using PEG.js, inspired by using Vue.js, and used by Generates to generate project files for scaffolding/bootstrapping.

Installation

npm install --save prescott

Usage

import { compile } from 'prescott'
 
const template = '{{ name }}'
const data = { name: 'Coleman' }
const render = compile(template)
const output = render(data)
// Outputs: Coleman

 

ISC © Ian Walter

Readme

Keywords

Package Sidebar

Install

npm i prescott

Weekly Downloads

0

Version

0.3.0

License

ISC

Unpacked Size

41.1 kB

Total Files

6

Last publish

Collaborators

  • ianwalter