wintersmith-livereload
LiveReload plugin for Wintersmith.
Installing
wintersmith plugin install livereload
or using npm
npm install [-g] wintersmith-livereload
and then add wintersmith-livereload
to your config.json
Usage
Include livereloadScript
somewhere in your template, it will inject the livereload script if running in preview mode.
example using jade:
doctype html
html
head
meta(charset='utf-8')
| !{ livereloadScript }
body
h1 Hello world
or using nunjucks:
Titlar {{ env.helpers.livereload() | safe }} Hello world
Options (can be omitted, defaults shown here):
Running tests
npm install
npm test