Commit Graph

246 Commits

Author SHA1 Message Date
Tom Alexander
ba79369b5a PartialEq works with results too. 2020-05-10 21:00:52 -04:00
Tom Alexander
7f89685537 PartialEq implemented too. 2020-05-10 21:00:06 -04:00
Tom Alexander
e986a1ba7a PartialEq compiling with double lifetimes. 2020-05-10 20:58:47 -04:00
Tom Alexander
8fd2a9cf39 tentatively seems to be working. 2020-05-10 19:16:55 -04:00
Tom Alexander
c96b2257d7 Compiling.
Need to see if I can do a generic implemented of IntoBoxedContextElement for all objects implementing Copy, and I need to implement the compare code to make sure this all works before I start integrating this more.
2020-05-10 19:07:41 -04:00
Tom Alexander
5c79b436a0 Commenting out the parameterscontext type. 2020-05-10 19:01:02 -04:00
Tom Alexander
6fb329388f Not having much luck. 2020-05-10 18:45:54 -04:00
Tom Alexander
b9cfa56c2f May have to use unsafe code. 2020-05-10 18:35:24 -04:00
Tom Alexander
9573480973 converting the parameters 2020-05-10 18:19:06 -04:00
Tom Alexander
876bced188 Converting RValues. 2020-05-10 18:10:17 -04:00
Tom Alexander
f386e5c31b Adding trait to cast to Any. 2020-05-10 17:12:15 -04:00
Tom Alexander
c438653449 No luck. 2020-05-10 15:02:59 -04:00
Tom Alexander
7e0e776486 Running into lifetime issues. 2020-05-10 14:53:12 -04:00
Tom Alexander
c8cf6a78a0 Extending the equality helper test. 2020-05-10 14:33:17 -04:00
Tom Alexander
7a8247f38a Getting the left and right sides. 2020-05-10 14:22:59 -04:00
Tom Alexander
012028b0bc Integrate the dustjs official helpers into the test framework. 2020-05-10 13:43:32 -04:00
Tom Alexander
f9212d1fe4 Merge branch 'blocks' into render 2020-05-09 22:49:49 -04:00
Tom Alexander
55f816b53f Finished implementing Named blocks and inline partials. 2020-05-09 22:49:17 -04:00
Tom Alexander
403f9e6530 Implement a recursive get_block. 2020-05-09 22:40:32 -04:00
Tom Alexander
6837fba489 Passing the block tree through the render functions. 2020-05-09 22:29:58 -04:00
Tom Alexander
9a33195c42 Generating the new treeX 2020-05-09 22:05:43 -04:00
Tom Alexander
d2904913ad I think I have the full extraction code. 2020-05-09 21:33:10 -04:00
Tom Alexander
ae74ce411a Getting down to the extract_inline_partials_from_tag function. 2020-05-09 21:09:46 -04:00
Tom Alexander
97e806a968 Start of structure for extracting inline partials from a template. 2020-05-09 21:01:37 -04:00
Tom Alexander
12d8b58961 Added a block inverse register order to test to prove that partial hierarchy matters. 2020-05-09 16:16:42 -04:00
Tom Alexander
5e3b71602f Seems inline partials do not bubble up to higher templates. 2020-05-09 16:06:54 -04:00
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