513 Commits (master)
 

Author SHA1 Message Date
Tom Alexander 966499db76
Switch the get_loop_elements implementation to only return populated arrays when its an array-like object. 4 years ago
Tom Alexander 59ee4f508f
Add a new trait to ContextElement for Truthiness.
Before I was relying on Loopable to both determine truthiness and get a list of elements to loop over. This will no longer work since I need to only set $idx and $len when iterating over actual arrays, as opposed to all truthy values, so I've finally made truthiness explicit.
4 years ago
Tom Alexander 055d88984e
Implement an injected context for iteration values. 4 years ago
Tom Alexander e0fe7475c5
Add a single element array test for idx_and_len.
This test is mostly because I am currently turning truthy values into single element arrays during render, so I need to make sure idx and len and not being set for non-array iteration.
4 years ago
Tom Alexander 9925802ae9
Add .$idx to nested section test. 4 years ago
Tom Alexander 93adaa518d
Add a test for $idx and $len inside nested sections. 4 years ago
Tom Alexander fff401da7e
Add a test to confirm references are getting parsed. 4 years ago
Tom Alexander abf251c68d
Add a test for $idx and $len. 4 years ago
Tom Alexander 381ed43645
Merge branch 'combined_walk_path' into render 4 years ago
Tom Alexander 39c579171b
Rename the new functions to replace the old functions. 4 years ago
Tom Alexander 46fe1f5204
Fix the last case by changing the lifetimes and delete the old fractured implementation. 4 years ago
Tom Alexander 4790ac77d6
Initial implementation combining owned_walk_path and walk_path. Works everywhere except one spot. 4 years ago
Tom Alexander a58b605e59
Add support for dot paths to owned_walk_path. 4 years ago
Tom Alexander 1ad9753845
Add an ignored test for type casting.
I think in order to support type casting in a generic fashion so that custom non-json types can be used, I'll need to push the implementation of helpers off into the traits instead of handling it in the renderer. This is a larger undertaking than I was planning on starting at this very moment, so I'm going to leave this test disabled and move on to a couple smaller tasks I wanted to knock out before starting implementation on custom helpers.
4 years ago
Tom Alexander 6c89f7c59a
Merge branch 'literal_string_block' into render 4 years ago
Tom Alexander b73561caf9
Add support for literal string blocks. 4 years ago
Tom Alexander 533ea96d4f
Add a test for literal string blocks. 4 years ago
Tom Alexander c3360907ee
Merge branch 'dot_leading_path' into render 4 years ago
Tom Alexander 50079c6415
Add support in the renderer for handling paths containing dot. 4 years ago
Tom Alexander 95dc15f103
Update parser to preserve the dot and support paths beginning with a dot. 4 years ago
Tom Alexander 6e8c7621f1
It seems paths with a leading dot restrict the scope the below the current context. 4 years ago
Tom Alexander da4ef1a8c8
Remove the headers to the dust helper tests because they were misleading. 4 years ago
Tom Alexander f16c3a4fa1
Merge branch 'filters' into render 4 years ago
Tom Alexander 92b9e571be
Array had the same javascript escaping string issue.
Filed a bug at https://github.com/linkedin/dustjs/issues/802 .
4 years ago
Tom Alexander 5424543122
Object also should not turn into a string during javascript escape. 4 years ago
Tom Alexander 96e8dd63a7
Dustjs appears to have an output limit of 65536 characters which was breaking the string test, so I split it in two. 4 years ago
Tom Alexander 7ff1f310f5
Same issue with numbers. 4 years ago
Tom Alexander 71378ed37d
Fix a bug w.r.t. quoting and escaping boolean values with filters. 4 years ago
Tom Alexander bd7866e973
Implement encodeURIComponent filter. 4 years ago
Tom Alexander 46d4f50410
Implement the encodeURI filter. 4 years ago
Tom Alexander 8d2728a767
Implement javascript string escaping. 4 years ago
Tom Alexander f3fef17d4b
I was wrong, html escape filter is appended even if an html escape filter is already there. 4 years ago
Tom Alexander e22bffd2ba
Implemented the json stringify and parse filters. 4 years ago
Tom Alexander 624c83b680
Automatically appending the html escape filter on the renderer side. 4 years ago
Tom Alexander 6a9fe9e1be
Beginning of applying filters for json types. Currently only supports html escaping. 4 years ago
Tom Alexander 34c8d24a69
Adding to the manual array test. 4 years ago
Tom Alexander 894da51916
Adding a manually written filters test for more specific testing.
The generated one is more for brute forcing compliance.
4 years ago
Tom Alexander c81a0c5001
Add tests for the other json types. 4 years ago
Tom Alexander a0136ea62e
Add a generated test invoking all the filters except jp. 4 years ago
Tom Alexander a6641d9c72
Add a template to dump the parameters to a custom helper. 4 years ago
Tom Alexander 9892d2f61d
Merge branch 'dynamic_partials' into render 4 years ago
Tom Alexander 5ddeeac966
minor cleanup. 4 years ago
Tom Alexander 93f9581d8a
Renamed the new partial implementation to the old partial name. 4 years ago
Tom Alexander 7be00ffea6
Remove the old partial implementation. 4 years ago
Tom Alexander ecf2576a0a
Remove default case from render_tag. 4 years ago
Tom Alexander 10c8b25817
Implement the new partial type in the renderer. 4 years ago
Tom Alexander 402d8679e2
Switch the parser over to a new partial implementation for dynamic partials. 4 years ago
Tom Alexander 52ba4fd0a3
Only run each command once in the compliance test suite. 4 years ago
Tom Alexander a33b46661e
Add a script to run a single test to make development easier since I often want to focus on one test at a time. 4 years ago
Tom Alexander 74c83ef374
Adding a basic dynamic partials test. 4 years ago