pug-modern
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i pug-modern

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

922 kB

Total Files

7

Last publish

Collaborators

  • lil5