Skip to content

Instantly share code, notes, and snippets.

@hail2u

hail2u/data.json

Last active Aug 27, 2019
Embed
What would you like to do?
mustache.js v3.0.2 and partial indentation
This is a partial.
<div>This is a partial.</div>
<div> This is a partial.</div>
$ npm install -s mustache@3.0.1
+ mustache@3.0.1
added 1 package from 1 contributor and audited 1 package in 0.811s
found 0 vulnerabilities
$ node_modules/.bin/mustache -p partial.mustache data.json test.mustache
<div>This is a partial.</div>
$ npm install -s mustache@3.0.2
+ mustache@3.0.2
updated 1 package and audited 1 package in 0.48s
found 0 vulnerabilities
$ node_modules/.bin/mustache -p partial.mustache data.json test.mustache
<div> This is a partial.</div>
<div>{{> partial}}</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment