Commit graph

35 commits

Author SHA1 Message Date
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
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
091146b617 Add #format statement 2022-12-11 22:50:44 -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
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
58adc38945 Parse whitespace stripping chars 2022-11-18 00:09:10 -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
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
7191ad8f27 Split up template parsing and execution 2022-11-15 22:07:45 -08:00
3b03764be7 Start work on template package 2022-11-15 19:11:29 -08:00