Pages

Tuesday, November 26, 2013

Using LiveReload plugin with DocPad

LiveReload plugin for DocPad updates the web page, being previewed in a browser, when a change happens in its source code. This is pretty convenient when adding content as it removes boring and repetitive work, and provides immediate visual feedback, preventing possible missteps.

The missing link to having LiveReload working is to have the "styles" block enabled in the template.

Reference: Beginner Guide | Getting Started | DocPad - Streamlined Web Development

<%- @getBlock("styles").toHTML() %>

No comments: