Skip to content

Instantly share code, notes, and snippets.

@hail2u
Last active August 27, 2019 10:23
Show Gist options
  • Save hail2u/b18354ed1c086bf9a3f735a8e4f1fe72 to your computer and use it in GitHub Desktop.
Save hail2u/b18354ed1c086bf9a3f735a8e4f1fe72 to your computer and use it in GitHub Desktop.
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