pre

prescott

A super-simple templating language

Showing:

Popularity

Downloads/wk

9

GitHub Stars

1

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

3.4KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Prescott

A super-simple templating language

Npm page Build status

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

License

Apache 2.0 with Commons Clause - See LICENSE

 

Created by Ian Walter

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100