Resources

Deno

Eta works out of the box with Deno. Prefer importing from JSR:

import { Eta } from "jsr:@bgub/eta"

configured this way:

const viewpath = `${Deno.cwd()}/views/`
const eta = new Eta({ views: viewpath, cache: true })

and used like this:

res.send(eta.render('home',{title:"that's my title"}));