- removed cache

- few comptime related changes
This commit is contained in:
2026-01-27 16:04:02 +05:30
parent aca930af41
commit 90c8f6f2fb
11 changed files with 140 additions and 378 deletions

View File

@@ -7,7 +7,6 @@
//! - Conditionals and loops
//! - Data binding
//! - Pretty printing
//! - LRU cache with TTL
const std = @import("std");
const httpz = @import("httpz");
@@ -208,11 +207,9 @@ const App = struct {
pub fn init(allocator: Allocator) !App {
return .{
.allocator = allocator,
.view = try pugz.ViewEngine.init(allocator, .{
.view = pugz.ViewEngine.init(.{
.views_dir = "views",
.pretty = true,
.max_cached_templates = 50,
.cache_ttl_seconds = 10, // 10s TTL for development
}),
};
}