Crouch example 2

node v4.9.1
version: 1.0.0
endpointsharetweet
const crouch = require("crouch"); const template = '<p>{text} <a href="{link}" title="{title}">{name}</a></p>', // Change the values over here! values = { name: 'James', link: 'http://codepen.io', title: 'CodePen', text: 'Crouch.js can be used with html templates.' }; const output = crouch( template, values ); return output; // Hello, my name is James. I'm from Chicago.
Loading…

no comments

    sign in to comment