0.3.0 • Published 6 years ago

prescott v0.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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

0.3.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago