513 Commits (master)
 

Author SHA1 Message Date
Tom Alexander df9ebaf0e0
Merge branch 'bug_partial_parse' into partial 4 years ago
Tom Alexander 2a9657e3d5
Turns out the issue was the trailing space on the parameters. 4 years ago
Tom Alexander 369fbaf579
works fine with one parameter. 4 years ago
Tom Alexander 710785139a
Works fine with the partial but without parameters. 4 years ago
Tom Alexander 569b4594be
works fine without the partial. 4 years ago
Tom Alexander bb3449467a
Running into an error parsing one of the partial test templates. 4 years ago
Tom Alexander bbb9b8d9d3
Partial simple is working. 4 years ago
Tom Alexander ad498abb74
Merge branch 'rework_errors' into partial 4 years ago
Tom Alexander 98a0145760
Adding a comment. 4 years ago
Tom Alexander 5d7c991bf0
Simplified the RenderError class. 4 years ago
Tom Alexander 05b56e83a9
Finished creating WalkError. 4 years ago
Tom Alexander f2f6404017
Compiles again. 4 years ago
Tom Alexander d758a71fb4
Ported the get_loop_elements wrapper. 4 years ago
Tom Alexander 2712126b3c
Need to do loop elements. 4 years ago
Tom Alexander fcb2f3fc4d
Going extreme: removing all fields and unifying all walk errors. 4 years ago
Tom Alexander b20368c586
Starting to create a WalkError type for walking that will not bubble up. 4 years ago
Tom Alexander 7d63d6ef7b
Merge Cant and Wont Walk. 4 years ago
Tom Alexander 2108f5cace
Remove CantRender, it was unused. 4 years ago
Tom Alexander efd103b84a
Running into a lifetime issue 4 years ago
Tom Alexander 2f515e068d
Implemented the renderer logic.
I should just need to implement ContextElement at this point.
4 years ago
Tom Alexander b45448edbd
Moved ParametersContext to its own file. 4 years ago
Tom Alexander 1a6db195cb
Starting a context for partial parameters. 4 years ago
Tom Alexander f240b877b8
Start of rendering partials. 4 years ago
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. 4 years ago
Tom Alexander 50c03b4f0f
Expanding the partial jump around tests. 4 years ago
Tom Alexander f47b91f8e7
Starting a more complicated test for partials to investigate scoping. 4 years ago
Tom Alexander 7087157ed3
Add partial test for walking up context vs parameters 4 years ago
Tom Alexander 0fcb70927c
Add an initial test of partial parameters 4 years ago
Tom Alexander 467a810569
Merge branch 'exists' into render 4 years ago
Tom Alexander dedfa79630
Do a truthiness check on references before printing them. 4 years ago
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. 4 years ago
Tom Alexander 0f47000a9b
Add support for the exists tag. 4 years ago
Tom Alexander 35f1ba8447
Merge branch 'walk_up_context' into render 4 years ago
Tom Alexander 3cf47fa1a8
Rename the new functions to replace the old functions. 4 years ago
Tom Alexander 18f9fb7f57
Delete old render functions. 4 years ago
Tom Alexander 05527377c4
Finish porting over the walk test. 4 years ago
Tom Alexander 9c414d4d06
Fixed rendering else blocks. 4 years ago
Tom Alexander 5760566be0
Start of porting over the walk tests. 4 years ago
Tom Alexander 26fe996b0d
Implement the new render functions. 4 years ago
Tom Alexander a3bb8e47c1
Implemented the backtracing logic for walking. 4 years ago
Tom Alexander 6bcc66dff5
Adding NotFound error type. 4 years ago
Tom Alexander 033fc9de6b
Implement walking for a single segment, 4 years ago
Tom Alexander c3fe7b47af
Added a test for backtracking.
DustJS appears to not do any backtracking.
4 years ago
Tom Alexander 2b6c3990a9
Add test for a multi-step walk into a parent context.
This test proves that the dynamic scoping does not add the intermediate steps when doing a multi-step walk.
4 years ago
Tom Alexander 45facfed0d
Improve the walk up test to prove that DustJS is doing dynamic scoping, not lexical scoping. 4 years ago
Tom Alexander 9adb88d132
Added a test case for walking up the context 4 years ago
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.
4 years ago
Tom Alexander cc6dbefcdb
Implement specials in the renderer. 4 years ago
Tom Alexander 7f65e73229
Merge branch 'bug_tags_separated_by_whitespace' into render 4 years ago
Tom Alexander bafff8e7a0
Finished transitioning to the new top-level ignored whitespace template element. 4 years ago