A basic SquirrellyJS template

node v10.15.3
version: 4.0.2
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" })

no comments

    sign in to comment