Interactive Examples

A Simple Template

var Eta = require('eta')
Eta.render('Hi <%= it.name %>', {name: 'Person'})

Partials

var Eta = require('eta')
Eta.templates.define("mypartial", Eta.compile("PARTIAL SPEAKING"))
Eta.render('This is a partial: <%~ include("mypartial") %>', {name: 'Person'})