Commit Graph

81 Commits

Author SHA1 Message Date
Tom Alexander
46bb5558ac Going to a more generic equality comparison for json. 2020-05-10 22:26:47 -04:00
Tom Alexander
6261f7881c Manual equals is working! 2020-05-10 22:14:07 -04:00
Tom Alexander
9baa669dea Separating out CastToAny. 2020-05-10 22:04:41 -04:00
Tom Alexander
32abe41e1a Generic implementation of CompareContextElement. 2020-05-10 21:11:49 -04:00
Tom Alexander
256051220d Generic implementation of CloneIntoBoxedContextElement. 2020-05-10 21:07:31 -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
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
7d63d6ef7b Merge Cant and Wont Walk. 2020-05-09 13:51:02 -04:00
Tom Alexander
3cf47fa1a8 Rename the new functions to replace the old functions. 2020-05-05 20:46:31 -04:00
Tom Alexander
26fe996b0d Implement the new render functions. 2020-05-05 19:51:07 -04:00
Tom Alexander
e957caf386 Render the else block in sections if the path does not exist or if the path can't be walked.
This fixes all existing compliance tests.
2020-05-03 15:29:02 -04:00
Tom Alexander
e5c4ba8c82 Add a Loopable trait for dust sections. 2020-04-28 19:34:52 -04:00
Tom Alexander
8e4f5e3229 Fixing warnings 2020-04-12 21:57:42 -04:00
Tom Alexander
883bda7a78 Added the signature for passing filters into the render function.
Added the signature for passing filters into the render function but I am not yet using the filters.
2020-04-12 21:54:15 -04:00
Tom Alexander
7a28e6a9d4 Handle rendering json arrays and objects 2020-04-12 21:40:34 -04:00
Tom Alexander
610adc8b72 Switch the Renderable trait over to the returning a RenderError 2020-04-12 21:09:03 -04:00
Tom Alexander
9c7883358a Better error handling added to walkable 2020-04-12 20:52:30 -04:00
Tom Alexander
d51392fe8a Initial move to returning results from render calls. 2020-04-12 18:29:40 -04:00
Tom Alexander
273f6204d8 Rendering my first template with actually following paths.
Before I was hard-coding the path to the reference. Now I am following the full path programmatically using the new ContextElement and Walkable traits.
2020-04-11 22:52:20 -04:00
Tom Alexander
e5e1703fab Implement ContextElement for serde_json::Value 2020-04-11 22:47:31 -04:00
Tom Alexander
15c8ee57a7 Successfully rendering my first template. 2020-04-11 19:19:40 -04:00
Tom Alexander
e26b158ab4 Initial implementation of custom Renderable trait. 2020-04-11 19:11:14 -04:00
Tom Alexander
f65a144b3c Beginning of the render_tag function.
Beginning of the render_tag function. At this point I need to figure out how to access elements in the context.
2020-04-11 19:05:40 -04:00
Tom Alexander
2459d7b418 Rendering spans 2020-04-11 18:25:48 -04:00
Tom Alexander
13934e8699 Rename DustContext to DustRenderer 2020-04-10 20:58:55 -04:00
Tom Alexander
2842d0a14a Loading the compiled templates into a context 2020-04-10 20:55:44 -04:00
Tom Alexander
743106684a compiling templates in the same manner as the shim 2020-04-10 20:27:27 -04:00
Tom Alexander
7e0a617ba6 Add support for supplying multiple templates to the dustjs shim to support testing partials. 2020-04-10 19:07:02 -04:00
Tom Alexander
fb17911c44 Change repo to generate both a library and a binary.
This repo will primary be a library, but for compliance testing it may make sense to have a binary operating in the same fashion as the node dustjs shim so I've set up this repo to generate both a library and a binary.
2020-04-05 19:21:43 -04:00