diff --git a/README.md b/README.md
index fce97dd..e872fb9 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,7 @@ View all feature comparisons and templates on the [Node Templates Page](http://p
* [mu2@0.5.3](https://github.com/raycmorgan/Mu)
* [swig@0.5.0](https://github.com/paularmstrong/swig)
* [Templ8@0.2.1](https://github.com/constantology/Templ8)
+* [Vash@0.3.1-327](https://github.com/kirbysayshi/Vash)
## Running
diff --git a/index.html b/index.html
index 3094fe7..9eafa6e 100644
--- a/index.html
+++ b/index.html
@@ -38,6 +38,7 @@
Template Languages (alphabetical)
Mu2 - A Mustache template engine for Node.js.
Swig - Swig is a template engine inspired by the Django syntax.
Templ8 - JavaScript client/server template engine.
+ Vash - The 60 billion double-dollar template-maker. Razor syntax, for JS.
Whiskers - A mustachioed templating library.
@@ -59,6 +60,7 @@ Feature Comparisons
Mu2 |
Swig |
Templ8 |
+ Vash |
Whiskers |
@@ -75,6 +77,7 @@ Feature Comparisons
✔ |
✔ |
✔ |
+ ✔ |
| Browser Support |
@@ -88,6 +91,7 @@ Feature Comparisons
✔ |
✔ |
✔ |
+ ✔ |
| Available via npm |
@@ -101,6 +105,7 @@ Feature Comparisons
✔ |
✔ |
✔ |
+ ✔ |
| Variable Filters |
@@ -114,6 +119,7 @@ Feature Comparisons
✔ |
✔ |
✖ |
+ ✖ |
| Shorthand HTML Syntax |
@@ -127,6 +133,7 @@ Feature Comparisons
✖ |
✖ |
✖ |
+ ✖ |
Extends / Block Template Inheritance |
@@ -140,6 +147,7 @@ Feature Comparisons
✔ |
✔ |
✖ |
+ ✖ |
| Escapes Output |
@@ -153,6 +161,7 @@ Feature Comparisons
✔ |
✖ |
✖ |
+ ✖ |
| Iteration |
@@ -166,6 +175,7 @@ Feature Comparisons
✔ |
✔ |
✔ |
+ ✔ |
if/else Conditionals |
@@ -179,6 +189,7 @@ Feature Comparisons
✔ |
✔ |
✔ |
+ ✔ |
else if Conditionals |
@@ -191,6 +202,7 @@ Feature Comparisons
✖ |
✔ |
✔ |
+ ✔ |
✖ |
@@ -205,6 +217,7 @@ Feature Comparisons
✔ |
✔ |
✖ |
+ ✖ |
| Partials / Includes✜ |
@@ -218,6 +231,7 @@ Feature Comparisons
✔ |
✔ |
✔ |
+ ✔ |
diff --git a/lib/languages/vash.js b/lib/languages/vash.js
new file mode 100644
index 0000000..a9381b0
--- /dev/null
+++ b/lib/languages/vash.js
@@ -0,0 +1,24 @@
+var vash = require('vash'),
+ fs = require('fs'),
+ data = {
+ header: 'Colors',
+ items: [
+ {name: 'red', current: true, url: '#Red'},
+ {name: 'green', current: false, url: '#Green'},
+ {name: 'blue', current: false, url: '#Blue'}
+ ]
+ },
+ files = {
+ simple: fs.readFileSync(__dirname + '/../templates/vash/simple.html', 'utf8')
+ },
+ tpl = {};
+
+exports.compile = function (type, callback) {
+ tpl[type] = vash.compile(files[type]);
+ callback();
+};
+
+exports.render = function (type, callback) {
+ tpl[type](data);
+ callback();
+};
diff --git a/lib/templates/vash/simple.html b/lib/templates/vash/simple.html
new file mode 100644
index 0000000..f8d0d34
--- /dev/null
+++ b/lib/templates/vash/simple.html
@@ -0,0 +1,16 @@
+@model.header
+@if(model.items.length) {
+
+ @model.items.forEach(function (item) {
+ @if (item.current) {
+ - @item.name
+ }
+ @if (!item.current) {
+ - @item.name
+ }
+ })
+
+}
+@if (model.items.length == 0) {
+ The list is empty.
+}
diff --git a/package.json b/package.json
index 69c9008..020836a 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"mu2": "0.5.3",
"swig": "0.7.0",
"Templ8": "0.2.1",
+ "vash": "0.3.1-327",
"whiskers": "0.1.0"
},
"main": "index",