Commit graph

53 commits

Author SHA1 Message Date
1d65984323 Use non-comptime ints in tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-18 05:44:13 -08:00
71a03b30f0 Allow printing optionals 2022-12-17 12:05:08 -08:00
27ee0ecd5d Add support for array.len pseudo-field 2022-12-14 02:57:27 -08:00
73ba42d2d5 Add loop index capture support 2022-12-14 02:35:23 -08:00
f2a23db588 Support integer literals 2022-12-14 02:08:07 -08:00
25d6ee0245 Support optional deref post-refactor 2022-12-14 01:36:58 -08:00
54748b4c07 Expression refactor 2022-12-14 01:29:00 -08:00
1269aeeac1 Add slice builtin 2022-12-14 00:46:24 -08:00
434b0e07d0 use std.meta.eql for equality 2022-12-13 02:28:37 -08:00
03463de743 Support types that can't be zero-initialized 2022-12-13 02:05:07 -08:00
44dfcd6bd0 Make null optional unwraps return error 2022-12-13 01:52:16 -08:00
bf0d2f6642 Add optional unwrap syntax 2022-12-13 01:34:27 -08:00
d504cef8ff Fix template formatting 2022-12-12 03:40:51 -08:00
091146b617 Add #format statement 2022-12-11 22:50:44 -08:00
25cd5f982b Escape HTML 2022-12-10 02:52:11 -08:00
882ff042e2 Template compilation errors on bad switch 2022-12-10 01:30:17 -08:00
ad513d70e2 Add switch statements 2022-12-10 01:30:17 -08:00
b2007131c8 Add @isTag builtin 2022-12-10 01:30:17 -08:00
4e3450de4e Add equals operator to template engine 2022-12-10 01:30:17 -08:00
466a15f3cb Use % for context instead of @ 2022-12-08 03:21:18 -08:00
ef27bb5c21 Let . refer to entire args struct 2022-12-08 02:58:18 -08:00
5924c257e0 Ignore captures with name _ 2022-12-08 02:54:36 -08:00
06b8483a8a Add support for optional unwrapping conditionals 2022-12-08 02:49:42 -08:00
86e203730c (#64) Add implicit context
Closes #64
2022-12-07 23:48:31 -08:00
8c0548fc74 (#63) Allow invoking other templates
Closes #63
2022-12-07 23:34:57 -08:00
e072b045c6 Parse template calls 2022-12-07 23:24:32 -08:00
9dabc237e0 (#62) Add elif support to template engine
Closes: #62
2022-12-07 22:47:55 -08:00
f8a799abfb Execute else branches 2022-12-07 17:30:01 -08:00
bb297a4f6e Parse else blocks 2022-12-07 17:26:36 -08:00
b0864b29d8 Return closing block from parseTemplate 2022-12-07 17:19:10 -08:00
0b13f210c7 Refactor 2022-12-02 21:49:17 -08:00
4e85c0225b Sample Cluster admin page 2022-11-19 03:13:05 -08:00
fdf0a84593 Fix whitespace stripping after control blocks 2022-11-18 03:32:30 -08:00
229acd6d3b Refactor template code 2022-11-18 03:24:25 -08:00
802e6402bf Token -> ControlToken 2022-11-18 02:05:13 -08:00
1340862c28 Add It param to ParseResult 2022-11-18 02:02:24 -08:00
52bb8739f8 Rename statement -> ControlBlock 2022-11-18 02:00:26 -08:00
1a7db9a834 Split expression/statements in parser 2022-11-18 01:58:13 -08:00
58adc38945 Parse whitespace stripping chars 2022-11-18 00:09:10 -08:00
22277beffc Add fields for whitespace stripping 2022-11-17 23:52:07 -08:00
c9af99d08f Add if statements to templating engine 2022-11-17 23:39:32 -08:00
5bb9742ab9 Change syntax for end_for statement 2022-11-17 23:23:02 -08:00
e4a04b869e refactor 2022-11-16 00:33:06 -08:00
c9d0090ab2 Add loop captures to capture struct 2022-11-16 00:18:14 -08:00
61493dc797 Combine Expressions and statements 2022-11-16 00:06:53 -08:00
8ebe77541f Add capture syntax 2022-11-16 00:01:45 -08:00
9d74bce266 Add loop captures 2022-11-15 23:53:29 -08:00
dcf777f5ea Iterate over for loop 2022-11-15 23:39:36 -08:00
934296b384 Parse for loop 2022-11-15 23:16:46 -08:00
efb50a325b Further split parsing and execution 2022-11-15 22:35:27 -08:00