Express compliant templating for underscore.js and Node.js
Latest commit e9f7c3d Aug 20, 2014 @mikefrey Merge pull request #3 from jackquack/master
Change: Added MIT license
Failed to load latest commit information.
examples added basic code example Apr 5, 2011
.npminclude added .npminclude file Mar 31, 2011
LICENSE Change: Added MIT license Aug 1, 2014 updated readme Mar 26, 2011
package.json Change: Added MIT license Aug 1, 2014
utml.js Implemented include May 18, 2013

UTML: Underscore Template Markup Language

UTML is a wrapper around the underscore.js template method to make it comply with the express web framework.


Use npm:

npm install utml

Using it in your project

Setting up your express app

// no need to require utml, express will do that for us
var app = require('express').createServer();

// set utml as the view engine
app.set('view engine', 'utml');

app.get('/', function(req, res){
    res.render('index', {
        locals : { 
            pageTitle : "Hello Node.js + Express + UTML!!",
            msg : "Insert snarky message here."

// start listening on the specified port

Create 'views/index.utml'

<p><%= msg %></p>

Create 'views/layout.utml'

<!doctype html>
        <title>Node Test Suite</title>

        <h1><%= pageTitle %></h1>

        <div><%= body %></div>