aboutsummaryrefslogtreecommitdiff
path: root/src/app/root.zig
blob: bbd07d2dc6898a953b97397255abd3634b3955a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const builtin = @import("builtin");
const std = @import("std");
const zs = @import("zeroscript");

pub const panic = zs.panic;
pub const std_options: std.Options = .{
    .logFn = zs.log.default,
};

const components = @import("components/root.zig").components;

pub const app: zs.App(.{
    .name = "Memora",
    .globals = &.{
        zs.Object.global(.window),
        zs.Object.global(.Object),
    },
    .components = components,
    .body = .parse(@embedFile("index.html")),
    .theme = @embedFile("theme.css"),
}) = .init;

comptime {
    _ = app;
}