Velocity plugin for DocPad
Adds support for the Velocity.js(http://git.shepherdwind.com/velocity.js/) templating engine to DocPad
Convention: .anything.vm
Install
TODO
Usage
Given that the document looks like:
---
title: "Homepage"
layout: "default"
---
<h2>Homepage content</h2>
<p>Hello Velocity</p>
and the layout is the following:
<html lang="en">
<head>
<title>$document.title</title>
<link rel="Shortcut Icon" href="/files/favicon.ico">
</head>
<body>
<div id="content">
$content
</div>
</body>
</html>
The end result will look like:
<html lang="en">
<head>
<title>Homepage</title>
<link rel="Shortcut Icon" href="/files/favicon.ico">
</head>
<body>
<div id="content">
<h2>Homepage content</h2>
<p>Hello Velocity</p>
</div>
</body>
</html>