diff --git a/src/main.zig b/src/main.zig index 596f87c81b66fc6a3f12f271f8e3656d70557237..c392e3c573b4775b01e271ef1196a36a09f4b632 100644 --- a/src/main.zig +++ b/src/main.zig @@ -7,6 +7,7 @@ const example_document = \\ meta[charset="utf-8"] \\ title("Pek Example") \\ meta[name="viewport" content="width=device-width,initial-scale=1"] + \\ meta[http-equiv="X-UA-Compatible" content="IE=edge"] \\ ) \\ body( \\ h1("Pek Example") @@ -22,6 +23,22 @@ const example_document = \\ /each/ \\ ) \\ p("Spooky text: "{spooky}) + \\ + // \\ {#if am_i_a_girl} + // \\ p("#1") + // \\ /if/ + // \\ + // \\ {#ifnot is_it_my_birthday} + // \\ p("#2") + // \\ /ifnot/ + // \\ + // \\ {#ifequal top_cities.len best_rating} + // \\ p("#3") + // \\ /ifequal/ + // \\ + // \\ {#ifnotequal favorite.color sky} + // \\ p("#4") + // \\ /ifnotequal/ \\ ) \\) ; @@ -32,6 +49,8 @@ pub fn main() !void { .author = "Meghan D", .favorite = .{ .flower = "Sunflower", + .program_lang = "Zig", + .color = "Pink", }, .top_cities = .{ .{ .name = "New York", .state = .{ .code = "NY" } }, @@ -41,5 +60,9 @@ pub fn main() !void { .{ .name = "Phoenix", .state = .{ .code = "AZ" } }, }, .spooky = "I better not be in bold.", + .am_i_a_girl = true, + .sky = "Blue", + .best_rating = 5, + .is_it_my_birthday = false, }); } diff --git a/test.html b/test.html index 3a9984d32c06a5609f46c5e43b2c2cf3ebe5d778..fb33a24f0fe1b67aa6bfd0fb09105bb257d12aa5 100644 --- a/test.html +++ b/test.html @@ -4,6 +4,7 @@