1.2.0 • Published 7 months ago

pug-modern v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Pug Modern

Pug but simple and just works in the browser. Built with typescript, tested in jsdom and node, environments.

With a simple example:

import Pug from "pug-modern";

const func = Pug.compile("h1 Hello #{name}");
let result1 = func({ name: "Anna" });
//-> <h1>Hello Anna</h1>

let result2 = Pug.render("h1 Hello #{name}", { name: "John" });
//-> <h1>Hello John</h1>

License

MIT

Thanks to Pug from their RequireJS bundle (It's bundled into this project)

Pug MIT License

1.2.0

7 months ago

1.0.0

7 months ago