xyproto / algernon

Small self-contained pure-Go web server with Lua, Teal, Markdown, Ollama, HTTP/2, QUIC, Redis, SQLite and PostgreSQL support ++
https://algernon.roboticoverlords.org
BSD 3-Clause "New" or "Revised" License
2.82k stars 138 forks source link

pug and jade template support #116

Open linkerlin opened 2 years ago

linkerlin commented 2 years ago

pug and jade are very active and popular. But Amber is dead . image

xyproto commented 2 years ago

I think the most important thing is that users are able to solve problems with Algernon, and comes with tools that makes this easier or smoother, like Amber or Pongo2.

Always implementing what is active and popular could, in the worst case, be a never ending hunt with little end benefit.

Pug/Jade looks interesting, though! It might be a good idea to add support for it.

xyproto commented 2 years ago

Since Algernon already supports Pongo2, and Pongo2 is quite popular (more than Pug/Jade, according to the chart above), is adding Jade support still interesting?

linkerlin commented 2 years ago

Since Algernon already supports Pongo2, and Pongo2 is quite popular (more than Pug/Jade, according to the chart above), is adding Jade support still interesting?

Maybe Pongo2 is enough good for now.

xyproto commented 2 years ago

I misread the chart as popularity. Jade still looks interesting, then. :)

tooolbox commented 2 years ago

My preference goes to https://github.com/CloudyKit/jet although it's not particularly popular. More from a syntax perspective.

But yeah Jade does look similar to Amber so probably a fine replacement for those who hanker for such.

xyproto commented 2 years ago

Jet looks nice as well! The performance of Jade looks attractive, though. I guess implementing and benchmarking both is the way to go.