Commit Graph

170 Commits

Author SHA1 Message Date
Tom Alexander
ec0edac607 Explicitly sort the non-main templates.
We will need this to deterministicly determine if the inline partials are registered in the order that the templates are parsed or the order that the templates are rendered.
2020-05-09 15:59:33 -04:00
Tom Alexander
9a0b28d80d Adding more tests. 2020-05-09 15:49:49 -04:00
Tom Alexander
d93602d686 Add another testing proving that inline partials can occur before the block definition. 2020-05-09 15:40:29 -04:00
Tom Alexander
353a04064e Adding findings to the README. 2020-05-09 15:39:38 -04:00
Tom Alexander
c09bedd94b Starting a test for blocks and inline partials. 2020-05-09 15:38:15 -04:00
Tom Alexander
afda9ce22f Merge branch 'partial' into render 2020-05-09 15:21:04 -04:00
Tom Alexander
97fbde6304 Add a test for partials referencing paths. 2020-05-09 15:20:14 -04:00
Tom Alexander
df9ebaf0e0 Merge branch 'bug_partial_parse' into partial 2020-05-09 15:16:01 -04:00
Tom Alexander
2a9657e3d5 Turns out the issue was the trailing space on the parameters. 2020-05-09 15:15:43 -04:00
Tom Alexander
369fbaf579 works fine with one parameter. 2020-05-09 15:11:04 -04:00
Tom Alexander
710785139a Works fine with the partial but without parameters. 2020-05-09 15:08:31 -04:00
Tom Alexander
569b4594be works fine without the partial. 2020-05-09 15:05:29 -04:00
Tom Alexander
bb3449467a Running into an error parsing one of the partial test templates. 2020-05-09 15:02:54 -04:00
Tom Alexander
bbb9b8d9d3 Partial simple is working. 2020-05-09 14:53:53 -04:00
Tom Alexander
ad498abb74 Merge branch 'rework_errors' into partial 2020-05-09 14:33:33 -04:00
Tom Alexander
98a0145760 Adding a comment. 2020-05-09 14:33:13 -04:00
Tom Alexander
5d7c991bf0 Simplified the RenderError class. 2020-05-09 14:27:42 -04:00
Tom Alexander
05b56e83a9 Finished creating WalkError. 2020-05-09 14:22:36 -04:00
Tom Alexander
f2f6404017 Compiles again. 2020-05-09 14:18:45 -04:00
Tom Alexander
d758a71fb4 Ported the get_loop_elements wrapper. 2020-05-09 14:14:22 -04:00
Tom Alexander
2712126b3c Need to do loop elements. 2020-05-09 14:10:56 -04:00
Tom Alexander
fcb2f3fc4d Going extreme: removing all fields and unifying all walk errors. 2020-05-09 14:00:19 -04:00
Tom Alexander
b20368c586 Starting to create a WalkError type for walking that will not bubble up. 2020-05-09 13:54:39 -04:00
Tom Alexander
7d63d6ef7b Merge Cant and Wont Walk. 2020-05-09 13:51:02 -04:00
Tom Alexander
2108f5cace Remove CantRender, it was unused. 2020-05-09 13:46:12 -04:00
Tom Alexander
efd103b84a Running into a lifetime issue 2020-05-08 22:34:58 -04:00
Tom Alexander
2f515e068d Implemented the renderer logic.
I should just need to implement ContextElement at this point.
2020-05-08 22:22:30 -04:00
Tom Alexander
b45448edbd Moved ParametersContext to its own file. 2020-05-08 22:12:35 -04:00
Tom Alexander
1a6db195cb Starting a context for partial parameters. 2020-05-08 20:58:32 -04:00
Tom Alexander
f240b877b8 Start of rendering partials. 2020-05-08 19:24:32 -04:00
Tom Alexander
ec321a17ca Adding a v0 to partial_jump_around_one to prove that the partial parameters are inserted 1 level above the current context. 2020-05-08 18:48:33 -04:00
Tom Alexander
50c03b4f0f Expanding the partial jump around tests. 2020-05-08 18:34:49 -04:00
Tom Alexander
f47b91f8e7 Starting a more complicated test for partials to investigate scoping. 2020-05-08 18:19:33 -04:00
Tom Alexander
7087157ed3 Add partial test for walking up context vs parameters 2020-05-07 19:28:22 -04:00
Tom Alexander
0fcb70927c Add an initial test of partial parameters 2020-05-07 19:12:45 -04:00
Tom Alexander
467a810569 Merge branch 'exists' into render 2020-05-06 20:33:02 -04:00
Tom Alexander
dedfa79630 Do a truthiness check on references before printing them. 2020-05-06 20:30:03 -04:00
Tom Alexander
b45688351e Rendering a reference appears to do a truthiness check because false renders an empty string despite rendering as "false" in an array element. 2020-05-06 20:13:33 -04:00
Tom Alexander
0f47000a9b Add support for the exists tag. 2020-05-06 19:10:09 -04:00
Tom Alexander
35f1ba8447 Merge branch 'walk_up_context' into render 2020-05-05 20:47:58 -04:00
Tom Alexander
3cf47fa1a8 Rename the new functions to replace the old functions. 2020-05-05 20:46:31 -04:00
Tom Alexander
18f9fb7f57 Delete old render functions. 2020-05-05 20:43:53 -04:00
Tom Alexander
05527377c4 Finish porting over the walk test. 2020-05-05 20:38:42 -04:00
Tom Alexander
9c414d4d06 Fixed rendering else blocks. 2020-05-05 20:32:30 -04:00
Tom Alexander
5760566be0 Start of porting over the walk tests. 2020-05-05 20:22:25 -04:00
Tom Alexander
26fe996b0d Implement the new render functions. 2020-05-05 19:51:07 -04:00
Tom Alexander
a3bb8e47c1 Implemented the backtracing logic for walking. 2020-05-04 23:45:21 -04:00
Tom Alexander
6bcc66dff5 Adding NotFound error type. 2020-05-04 23:36:13 -04:00
Tom Alexander
033fc9de6b Implement walking for a single segment, 2020-05-04 23:10:35 -04:00
Tom Alexander
c3fe7b47af Added a test for backtracking.
DustJS appears to not do any backtracking.
2020-05-03 16:49:34 -04:00