authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-08 20:44:04 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-08 20:44:04 -07:00
log879a613b8a75275355d463883586bb5255ab1d8e
tree251ca654f4b4dcb261d63b81eec2b9e41414dc39
parent8183f483019d1771fc5fd2d58580572502c5754c

main- add runtime data to ensure runtimeness continues to work


1 files changed, 3 insertions(+), 2 deletions(-)

src/main.zig+3-2
...@@ -44,9 +44,10 @@ const example_document =...@@ -44,9 +44,10 @@ const example_document =
44;44;
4545
46pub fn main() !void {46pub fn main() !void {
47 var name: []const u8 = "Meghan D";
47 const doc = comptime pek.parse(example_document);48 const doc = comptime pek.parse(example_document);
48 try pek.compile(std.io.getStdOut().writer(), doc, .{49 try pek.compile(std.io.getStdOut().writer(), doc, .{
49 .author = "Meghan D",50 .author = name,
50 .favorite = .{51 .favorite = .{
51 .flower = "Sunflower",52 .flower = "Sunflower",
52 .program_lang = "Zig",53 .program_lang = "Zig",
...@@ -62,7 +63,7 @@ pub fn main() !void {...@@ -62,7 +63,7 @@ pub fn main() !void {
62 .spooky = "<strong>I better not be in bold.</strong>",63 .spooky = "<strong>I better not be in bold.</strong>",
63 .am_i_a_girl = true,64 .am_i_a_girl = true,
64 .sky = "Blue",65 .sky = "Blue",
65 .best_rating = 5,66 .best_rating = @as(usize, 5),
66 .is_it_my_birthday = false,67 .is_it_my_birthday = false,
67 });68 });
68}69}