Template wrapper for hogan - mustache to allow php style templates
Here was the problem.. I want templates that will work in both PHP and NodeJS-ExpressJS..
I like to template in PHP the simple way.. like this..
Now this template can be used in Express like this..
var express = require'express'app = express;appset'view engine' 'pjs'appengine'pjs' require'./index.js'var o = name:'Chris' greeting:'how are you'appget'/mustache'resrender"index-mustache" o;appget'/'resrender"index-pjs" o;applisten3000
Mustache can be used instead, but partials are not supported
Templates have an .pjs extension and are in /views
See test.js for examples