peachfuzz
Simple Mustache inspired string substitution.
API
peachfuzztemplate: string, context: Object, transform: Function: string
Usage
var peachfuzz = ; ; //=> 'Hello Devin'
peachfuzz
takes an optional transform
argument that allows values pulled
from the context to be transformed before substitution:
var peachfuzz = ; var template = 'https://swag.shop/?product={{product}}';var context = product: 'Moustache Wax' ;;//=> 'https://swag.shop/?product=Moustache%20Wax'