ose icon indicating copy to clipboard operation
ose copied to clipboard

feat: Pug-to-Handlebars Pipeline

Open wyrmisis opened this issue 1 year ago • 2 comments

Intent

This changeset adds Pug to our workflow.

Pug is a less verbose templating engine that outputs to HTML-like syntax. Thankfully, for our purposes, it'll convert to Handlebars just fine.

Why the heck?

  • HTML is super verbose. It's easy to get lost in a tangle of tags.
  • Handlebars templates aren't pre-compiled; they handle the inclusion of partials at runtime. Oftentimes, partials are used for code-sharing and code-splitting. Why foist that cost onto users?

wyrmisis avatar Feb 16 '24 15:02 wyrmisis

With a new system in place, I think it might be beneficial to make a note of pug and a link to their documentation somewhere in CONTRIBUTING.md so the on-boarding process for new people is as smooth as possible.

Other than that, I like the look and functionality of pug from what I can see.

Absolutely correct. I'm rolling through existing templates to convert them to use Pug right now, but I'll be sure to update our documentation to mention it.

wyrmisis avatar Feb 17 '24 07:02 wyrmisis

I'll look at this after the bugfix release :)

anthonyronda avatar Apr 01 '24 03:04 anthonyronda