jetzig-framework / zmpl

Zmpl is a templating language written in Zig
MIT License
103 stars 8 forks source link

Implement partials #7

Closed bobf closed 8 months ago

bobf commented 8 months ago

Rework manifest and compiled template output to use std.Build.addWriteFiles - no longer pollutes project directory with compiled templates/manifest file.

Templates are now located at runtime with:

const manifest = @import("zmpl.manifest"); // Generated file
if (manifest.find("template_name")) |template| {
    template.render(&data);
}