logoalt Hacker News

infogulch • today at 2:52 PM • 1 reply • view on HN

How does zt compare to zmpl, another popular zig templating engine?

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


Replies

lukaslalinsky • today at 3:29 PM

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.