aboutsummaryrefslogtreecommitdiff
path: root/src/app/root.zig
blob: eefc37464460f4bb3efc39e95066320f9cb34f86 (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 z = @import("z");

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

pub const app: z.App(.{
    .name = "Memora",
    .globals = &.{
        z.Object.global(.window),
        z.Object.global(.Object),
    },
    .components = &.{
        @import("components/hello/root.zig").component,
    },
    .body = .native(.@"app-hello", .{}, .content("")),
    .theme = @embedFile("theme.css"),
}) = .init;

comptime {
    _ = app;
}