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