process.js http://run.omoch.in/process.js/ is lightweight template engine, like "Smarty". to expr complex condition, you can use custom functions.