Hacker News new | ask | show | jobs
by infogulch 52 days ago
How does zt compare to zmpl, another popular zig templating engine?

https://github.com/jetzig-framework/zmpl

1 comments

Zmpl wants you to build up a JSON-like data tree, and templates work using those values. That unfortunately means you are back to dealing with runtime errors. Minor thing, but they also want to render the template into an allocated string, rather than writing it to std.Io.Writer directly. And then there is the syntax, I prefer the Go Templ approach.
Liililk scwlewsusiusk leaa as slf e e.