A basic SquirrellyJS template

node v10.15.1
version: 4.0.1
endpointsharetweet
var Sqrl = require("squirrelly") // If you are in a browser, Sqrl is already globally available. // If you are using Webpack, you can: import * as Sqrl from 'squirrelly' var myTemplate = "This is a template. My favorite template engine is {{fav}}, and my favorite kind of cake is {{cake}}." var templateResult = Sqrl.Render(myTemplate, { fav: "Squirrelly", cake: "Chocolate" }) console.log(templateResult)
Loading…

no comments

    sign in to comment