Commit Graph

  • 966499db76
    Switch the get_loop_elements implementation to only return populated arrays when its an array-like object. Tom Alexander 2020-05-24 16:27:13 -04:00
  • 59ee4f508f
    Add a new trait to ContextElement for Truthiness. Tom Alexander 2020-05-24 16:16:43 -04:00
  • 055d88984e
    Implement an injected context for iteration values. Tom Alexander 2020-05-24 16:01:56 -04:00
  • e0fe7475c5
    Add a single element array test for idx_and_len. Tom Alexander 2020-05-24 15:29:14 -04:00
  • 9925802ae9
    Add .$idx to nested section test. Tom Alexander 2020-05-24 15:25:17 -04:00
  • 93adaa518d
    Add a test for $idx and $len inside nested sections. Tom Alexander 2020-05-24 14:06:44 -04:00
  • fff401da7e
    Add a test to confirm references are getting parsed. Tom Alexander 2020-05-24 13:58:20 -04:00
  • abf251c68d
    Add a test for $idx and $len. Tom Alexander 2020-05-24 13:53:01 -04:00
  • 381ed43645
    Merge branch 'combined_walk_path' into render Tom Alexander 2020-05-24 15:21:53 -04:00
  • 39c579171b
    Rename the new functions to replace the old functions. Tom Alexander 2020-05-24 15:21:30 -04:00
  • 46fe1f5204
    Fix the last case by changing the lifetimes and delete the old fractured implementation. Tom Alexander 2020-05-24 15:01:41 -04:00
  • 4790ac77d6
    Initial implementation combining owned_walk_path and walk_path. Works everywhere except one spot. Tom Alexander 2020-05-24 14:56:09 -04:00
  • a58b605e59
    Add support for dot paths to owned_walk_path. Tom Alexander 2020-05-24 14:17:53 -04:00
  • 1ad9753845
    Add an ignored test for type casting. Tom Alexander 2020-05-24 13:05:34 -04:00
  • 6c89f7c59a
    Merge branch 'literal_string_block' into render Tom Alexander 2020-05-23 23:47:32 -04:00
  • b73561caf9
    Add support for literal string blocks. Tom Alexander 2020-05-23 23:41:05 -04:00
  • 533ea96d4f
    Add a test for literal string blocks. Tom Alexander 2020-05-23 23:32:13 -04:00
  • c3360907ee
    Merge branch 'dot_leading_path' into render Tom Alexander 2020-05-23 23:26:33 -04:00
  • 50079c6415
    Add support in the renderer for handling paths containing dot. Tom Alexander 2020-05-23 23:26:00 -04:00
  • 95dc15f103
    Update parser to preserve the dot and support paths beginning with a dot. Tom Alexander 2020-05-23 23:12:51 -04:00
  • 6e8c7621f1
    It seems paths with a leading dot restrict the scope the below the current context. Tom Alexander 2020-05-23 23:06:04 -04:00
  • da4ef1a8c8
    Remove the headers to the dust helper tests because they were misleading. Tom Alexander 2020-05-23 22:41:12 -04:00
  • f16c3a4fa1
    Merge branch 'filters' into render Tom Alexander 2020-05-23 22:39:13 -04:00
  • 92b9e571be
    Array had the same javascript escaping string issue. Tom Alexander 2020-05-23 22:37:56 -04:00
  • 5424543122
    Object also should not turn into a string during javascript escape. Tom Alexander 2020-05-23 22:31:33 -04:00
  • 96e8dd63a7
    Dustjs appears to have an output limit of 65536 characters which was breaking the string test, so I split it in two. Tom Alexander 2020-05-23 22:23:54 -04:00
  • 7ff1f310f5
    Same issue with numbers. Tom Alexander 2020-05-23 22:06:25 -04:00
  • 71378ed37d
    Fix a bug w.r.t. quoting and escaping boolean values with filters. Tom Alexander 2020-05-23 19:34:38 -04:00
  • bd7866e973
    Implement encodeURIComponent filter. Tom Alexander 2020-05-23 19:10:02 -04:00
  • 46d4f50410
    Implement the encodeURI filter. Tom Alexander 2020-05-23 19:06:09 -04:00
  • 8d2728a767
    Implement javascript string escaping. Tom Alexander 2020-05-23 18:40:09 -04:00
  • f3fef17d4b
    I was wrong, html escape filter is appended even if an html escape filter is already there. Tom Alexander 2020-05-23 18:18:59 -04:00
  • e22bffd2ba
    Implemented the json stringify and parse filters. Tom Alexander 2020-05-23 18:14:23 -04:00
  • 624c83b680
    Automatically appending the html escape filter on the renderer side. Tom Alexander 2020-05-23 17:57:19 -04:00
  • 6a9fe9e1be
    Beginning of applying filters for json types. Currently only supports html escaping. Tom Alexander 2020-05-23 17:23:48 -04:00
  • 34c8d24a69
    Adding to the manual array test. Tom Alexander 2020-05-23 16:07:24 -04:00
  • 894da51916
    Adding a manually written filters test for more specific testing. Tom Alexander 2020-05-23 16:04:36 -04:00
  • c81a0c5001
    Add tests for the other json types. Tom Alexander 2020-05-23 15:58:12 -04:00
  • a0136ea62e
    Add a generated test invoking all the filters except jp. Tom Alexander 2020-05-23 15:52:31 -04:00
  • a6641d9c72
    Add a template to dump the parameters to a custom helper. Tom Alexander 2020-05-23 14:28:21 -04:00
  • 9892d2f61d
    Merge branch 'dynamic_partials' into render Tom Alexander 2020-05-17 21:21:52 -04:00
  • 5ddeeac966
    minor cleanup. Tom Alexander 2020-05-17 21:21:26 -04:00
  • 93f9581d8a
    Renamed the new partial implementation to the old partial name. Tom Alexander 2020-05-17 21:17:34 -04:00
  • 7be00ffea6
    Remove the old partial implementation. Tom Alexander 2020-05-17 21:15:03 -04:00
  • ecf2576a0a
    Remove default case from render_tag. Tom Alexander 2020-05-17 21:12:27 -04:00
  • 10c8b25817
    Implement the new partial type in the renderer. Tom Alexander 2020-05-17 21:11:55 -04:00
  • 402d8679e2
    Switch the parser over to a new partial implementation for dynamic partials. Tom Alexander 2020-05-17 20:44:17 -04:00
  • 52ba4fd0a3
    Only run each command once in the compliance test suite. Tom Alexander 2020-05-17 16:40:23 -04:00
  • 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. Tom Alexander 2020-05-17 16:32:16 -04:00
  • 74c83ef374
    Adding a basic dynamic partials test. Tom Alexander 2020-05-17 16:07:11 -04:00
  • 4645530473
    Use the render function when doing string coercion for json values. Tom Alexander 2020-05-17 15:52:38 -04:00
  • 04d2f4b331
    Merge branch 'bug_comparison_type_coercion' into render Tom Alexander 2020-05-17 00:41:43 -04:00
  • 756fdb7d00
    Tests are once again passing. Tom Alexander 2020-05-17 00:40:55 -04:00
  • 830bb06a92
    Unifying number comparison. Tom Alexander 2020-05-17 00:27:21 -04:00
  • 731f235d9e
    fix greater than. Tom Alexander 2020-05-16 23:26:33 -04:00
  • 03a8328148
    Fix the equality test. Tom Alexander 2020-05-16 23:19:02 -04:00
  • d77ab7401c
    Switched over to using operators instead of compare in the renderer. Tom Alexander 2020-05-16 23:10:04 -04:00
  • 596611c03a
    Mostly implemented the new comparison logic for json with new literals. Tom Alexander 2020-05-16 23:07:05 -04:00
  • 189dfb1755
    Fix tests. Tom Alexander 2020-05-16 22:39:29 -04:00
  • c905e705ff
    Transition to new literals compiling. Tom Alexander 2020-05-16 22:30:04 -04:00
  • bc25c1ee16
    Starting to remove the old RValues. Tom Alexander 2020-05-16 22:19:51 -04:00
  • 16d8891452
    Implement partial_compare for OwnedLiteral. Tom Alexander 2020-05-16 22:08:03 -04:00
  • bf35fd0ae4
    equals implementation for literal. Tom Alexander 2020-05-16 22:02:58 -04:00
  • 6519add838
    Starting an OwnedLiteral type instead of using rust's built-in primitives. Tom Alexander 2020-05-16 21:52:44 -04:00
  • dd160c5708
    Hitting an infinite loop on compare string and int. Tom Alexander 2020-05-16 21:34:45 -04:00
  • 054480b797
    First stab at fixing the error, not a full success. Tom Alexander 2020-05-16 21:30:51 -04:00
  • 974ce96f14
    Merge branch 'dust_helpers' into render Tom Alexander 2020-05-16 19:07:03 -04:00
  • ce8b73f87a
    Implement less than or equals. Tom Alexander 2020-05-16 19:06:40 -04:00
  • 30b7324049
    Implement less-than. Tom Alexander 2020-05-16 19:05:03 -04:00
  • 496a5e0ac7
    Had to manually interpret the partial_cmp output instead of using the built-in operators since gte confusingly returns true for mismatched values. Tom Alexander 2020-05-16 18:36:47 -04:00
  • 62cd73f9c9
    Initial attempt at implementation, tests not working. Tom Alexander 2020-05-16 18:28:23 -04:00
  • 7cde89c601
    Merge branch 'helper_greater_than' into dust_helpers Tom Alexander 2020-05-16 18:23:00 -04:00
  • 0cfe67311e
    Comment out the unicode literals test because unicode breaks nom. Tom Alexander 2020-05-16 18:21:10 -04:00
  • f640cb0440
    Fixed greater than helper by using rust's PartialOrd implementation for Vec. Tom Alexander 2020-05-16 18:15:03 -04:00
  • 7126e83d9a
    Added tests for non-congruous arrays. Tom Alexander 2020-05-16 17:53:57 -04:00
  • b53a9e1837
    Cleaning up and factoring out reused code in the renderer. Tom Alexander 2020-05-16 17:17:43 -04:00
  • 0f90fa2c7e
    Add support for ignoring tests by prefixing their name with an underscore. Tom Alexander 2020-05-16 16:46:39 -04:00
  • 6758d515f1
    Have greater than helper very close to correct. Just need to make it compare arrays of scalars. Tom Alexander 2020-05-16 16:24:36 -04:00
  • 48e35c54bb
    Add tests for less than and less than or equal to. Tom Alexander 2020-05-16 15:51:40 -04:00
  • 02abee1c53
    Add a test for gte. Tom Alexander 2020-05-16 15:45:57 -04:00
  • 7d4cb14530
    Add that check to the not-equals helper and update the json value implementation to mark all non-scalars as not-equals. Tom Alexander 2020-05-16 15:30:17 -04:00
  • 41e4874d75
    Add a check to the equality helper to mark identical paths as equal. Tom Alexander 2020-05-16 15:22:48 -04:00
  • d751df6fd5
    Add tests for copied values. Tom Alexander 2020-05-16 14:48:04 -04:00
  • 6dbeb77a28
    Add arrays to all helpers tests. Tom Alexander 2020-05-16 14:15:44 -04:00
  • 2b5bec05be
    Implemented partial_compare for scalar json values. Tom Alexander 2020-05-16 14:08:59 -04:00
  • 71e6da39ee
    Add a test for boolean comparison. Tom Alexander 2020-05-16 13:46:31 -04:00
  • 563fd1f6db
    Starting comparison of json value to json value. Tom Alexander 2020-05-16 13:44:34 -04:00
  • 9851a2556d
    Ordering implementation for comparison between json and literals. Tom Alexander 2020-05-16 13:40:56 -04:00
  • 8748cb7063
    Structure for ordering, need to implement for serde_json::Value. Tom Alexander 2020-05-16 13:31:52 -04:00
  • 8a44bc6fd9
    Add greater-than-specific tests to investigate string ordering. Tom Alexander 2020-05-16 13:06:52 -04:00
  • f390c05a4c
    Finished porting over the equality test to greater than. Tom Alexander 2020-05-16 13:00:09 -04:00
  • 196740ae34
    Starting the greater than helper tests. Tom Alexander 2020-05-16 12:51:27 -04:00
  • ed7b1f5b3e
    Merge branch 'helper_not_equals' into dust_helpers Tom Alexander 2020-05-16 12:27:01 -04:00
  • f4a935224c
    Implemented the not equals helper. Tom Alexander 2020-05-16 12:26:28 -04:00
  • 94cedef3ef
    Added a test for not equals which is roughly a copy of the equals test. Tom Alexander 2020-05-16 12:23:08 -04:00
  • e04a0be5e7
    Add the rest of the helpers to the recursive extract inline partials function. Tom Alexander 2020-05-16 12:13:40 -04:00
  • 3c85717952
    Merge branch 'remove_lifetime_from_context_elements' into dust_helpers Tom Alexander 2020-05-10 23:43:19 -04:00
  • 1b63bc4083
    Add a test for integer literals. Tom Alexander 2020-05-10 23:42:56 -04:00
  • 6e6560c742
    Revived the tests. Tom Alexander 2020-05-10 23:26:15 -04:00
  • c88cab8316
    Hook in the integer parser. Tom Alexander 2020-05-10 23:13:25 -04:00