blob: c9aeef45a38fc66e2c3ada8abcf977397a50ef9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
const zilch = @import("zilch");
pub const component: zilch.Component = .build(.{
.name = "image",
.html = .parse(@embedFile("index.html")),
.css = @embedFile("index.css"),
.link = @This(),
});
const Self = @This();
element: *zilch.Object,
pub fn init(self: *Self, element: *zilch.Object) !void {
self.element = element;
}
pub const connect = component.connect;
|