UTILITIES NEWBIE

Static Pug to HTML converter

Convert a small, markup-only Pug template into HTML without evaluating template code.

Source

0 characters

Import a local UTF-8 file
Print and optional local draft

An explicit save stores only source text as plaintext in this browser on this device. Do not save secrets or use a shared device. Nothing is saved or loaded automatically.

No draft has been loaded.

Output

Worked input and output

Input

main
  h1 Hello
  p Ready

Output

<main><h1>Hello</h1><p>Ready</p></main>

Indented lines become child elements. Hello and Ready remain literal text. No Pug JavaScript expressions, server-side includes or interpolation are evaluated.