Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

ianwalter/prescott

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A super-simple templating language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published