Commit Graph

  • 9ee8f41022
    Implement the render send of integer literals. Tom Alexander 2020-05-10 23:11:16 -04:00
  • 79099a8654
    Parsing positive integers. Tom Alexander 2020-05-10 23:01:14 -04:00
  • 7dd824ab4f
    cleaning up. Tom Alexander 2020-05-10 22:40:47 -04:00
  • 68639481f5
    Implement a real clone for ParametersContext. Tom Alexander 2020-05-10 22:35:17 -04:00
  • 46bb5558ac
    Going to a more generic equality comparison for json. Tom Alexander 2020-05-10 22:26:47 -04:00
  • 6297fa0189
    Rename NewParametersContext to ParametersContext. Tom Alexander 2020-05-10 22:21:18 -04:00
  • 75ba35a422
    Cleaning up. Tom Alexander 2020-05-10 22:20:39 -04:00
  • 6261f7881c
    Manual equals is working! Tom Alexander 2020-05-10 22:14:07 -04:00
  • 2fb7ca9db7
    Making CastToAny more generic. Tom Alexander 2020-05-10 22:05:48 -04:00
  • 9baa669dea
    Separating out CastToAny. Tom Alexander 2020-05-10 22:04:41 -04:00
  • d5e0c93205
    Comparisons between json strings vs rvalue literals is not working as I had hoped. Tom Alexander 2020-05-10 21:45:06 -04:00
  • 798d84828e
    Implemented owned_walk_path. Tom Alexander 2020-05-10 21:38:37 -04:00
  • dade738f55
    The structure is all there, just need to implement owned_walk_path and clone on NewParametersContext. Tom Alexander 2020-05-10 21:34:18 -04:00
  • 4e274b9ea5
    Running into the walking issue again. Tom Alexander 2020-05-10 21:28:47 -04:00
  • 137e7887a0
    Finish implementing DTHelperEquals. Tom Alexander 2020-05-10 21:14:51 -04:00
  • 32abe41e1a
    Generic implementation of CompareContextElement. Tom Alexander 2020-05-10 21:10:48 -04:00
  • 256051220d
    Generic implementation of CloneIntoBoxedContextElement. Tom Alexander 2020-05-10 21:07:31 -04:00
  • ba79369b5a
    PartialEq works with results too. Tom Alexander 2020-05-10 21:00:52 -04:00
  • 7f89685537
    PartialEq implemented too. Tom Alexander 2020-05-10 21:00:06 -04:00
  • e986a1ba7a
    PartialEq compiling with double lifetimes. Tom Alexander 2020-05-10 20:58:47 -04:00
  • 8fd2a9cf39
    tentatively seems to be working. Tom Alexander 2020-05-10 19:16:55 -04:00
  • c96b2257d7
    Compiling. Tom Alexander 2020-05-10 19:07:41 -04:00
  • 5c79b436a0
    Commenting out the parameterscontext type. Tom Alexander 2020-05-10 19:01:02 -04:00
  • 6fb329388f
    Not having much luck. Tom Alexander 2020-05-10 18:45:54 -04:00
  • b9cfa56c2f
    May have to use unsafe code. Tom Alexander 2020-05-10 18:35:24 -04:00
  • 9573480973
    converting the parameters Tom Alexander 2020-05-10 18:19:06 -04:00
  • 876bced188
    Converting RValues. Tom Alexander 2020-05-10 18:10:17 -04:00
  • f386e5c31b
    Adding trait to cast to Any. Tom Alexander 2020-05-10 17:12:15 -04:00
  • c438653449
    No luck. Tom Alexander 2020-05-10 15:02:59 -04:00
  • 7e0e776486
    Running into lifetime issues. Tom Alexander 2020-05-10 14:53:12 -04:00
  • c8cf6a78a0
    Extending the equality helper test. Tom Alexander 2020-05-10 14:33:17 -04:00
  • 7a8247f38a
    Getting the left and right sides. Tom Alexander 2020-05-10 14:22:59 -04:00
  • 012028b0bc
    Integrate the dustjs official helpers into the test framework. Tom Alexander 2020-05-10 13:43:32 -04:00
  • f9212d1fe4
    Merge branch 'blocks' into render Tom Alexander 2020-05-09 22:49:49 -04:00
  • 55f816b53f
    Finished implementing Named blocks and inline partials. Tom Alexander 2020-05-09 22:48:30 -04:00
  • 403f9e6530
    Implement a recursive get_block. Tom Alexander 2020-05-09 22:40:32 -04:00
  • 6837fba489
    Passing the block tree through the render functions. Tom Alexander 2020-05-09 22:29:58 -04:00
  • 9a33195c42
    Generating the new treeX Tom Alexander 2020-05-09 22:05:43 -04:00
  • d2904913ad
    I think I have the full extraction code. Tom Alexander 2020-05-09 21:30:54 -04:00
  • ae74ce411a
    Getting down to the extract_inline_partials_from_tag function. Tom Alexander 2020-05-09 21:09:46 -04:00
  • 97e806a968
    Start of structure for extracting inline partials from a template. Tom Alexander 2020-05-09 21:01:37 -04:00
  • 12d8b58961
    Added a block inverse register order to test to prove that partial hierarchy matters. Tom Alexander 2020-05-09 16:16:42 -04:00
  • 5e3b71602f
    Seems inline partials do not bubble up to higher templates. Tom Alexander 2020-05-09 16:06:54 -04:00
  • ec0edac607
    Explicitly sort the non-main templates. Tom Alexander 2020-05-09 15:59:33 -04:00
  • 9a0b28d80d
    Adding more tests. Tom Alexander 2020-05-09 15:49:49 -04:00
  • d93602d686
    Add another testing proving that inline partials can occur before the block definition. Tom Alexander 2020-05-09 15:40:29 -04:00
  • 353a04064e
    Adding findings to the README. Tom Alexander 2020-05-09 15:39:38 -04:00
  • c09bedd94b
    Starting a test for blocks and inline partials. Tom Alexander 2020-05-09 15:38:15 -04:00
  • afda9ce22f
    Merge branch 'partial' into render Tom Alexander 2020-05-09 15:21:04 -04:00
  • 97fbde6304
    Add a test for partials referencing paths. Tom Alexander 2020-05-09 15:20:14 -04:00
  • df9ebaf0e0
    Merge branch 'bug_partial_parse' into partial Tom Alexander 2020-05-09 15:16:01 -04:00
  • 2a9657e3d5
    Turns out the issue was the trailing space on the parameters. Tom Alexander 2020-05-09 15:15:43 -04:00
  • 369fbaf579
    works fine with one parameter. Tom Alexander 2020-05-09 15:11:04 -04:00
  • 710785139a
    Works fine with the partial but without parameters. Tom Alexander 2020-05-09 15:08:31 -04:00
  • 569b4594be
    works fine without the partial. Tom Alexander 2020-05-09 15:05:29 -04:00
  • bb3449467a
    Running into an error parsing one of the partial test templates. Tom Alexander 2020-05-09 15:02:54 -04:00
  • bbb9b8d9d3
    Partial simple is working. Tom Alexander 2020-05-09 14:53:53 -04:00
  • ad498abb74
    Merge branch 'rework_errors' into partial Tom Alexander 2020-05-09 14:33:33 -04:00
  • 98a0145760
    Adding a comment. Tom Alexander 2020-05-09 14:33:13 -04:00
  • 5d7c991bf0
    Simplified the RenderError class. Tom Alexander 2020-05-09 14:27:42 -04:00
  • 05b56e83a9
    Finished creating WalkError. Tom Alexander 2020-05-09 14:22:36 -04:00
  • f2f6404017
    Compiles again. Tom Alexander 2020-05-09 14:18:45 -04:00
  • d758a71fb4
    Ported the get_loop_elements wrapper. Tom Alexander 2020-05-09 14:14:22 -04:00
  • 2712126b3c
    Need to do loop elements. Tom Alexander 2020-05-09 14:10:38 -04:00
  • fcb2f3fc4d
    Going extreme: removing all fields and unifying all walk errors. Tom Alexander 2020-05-09 14:00:19 -04:00
  • b20368c586
    Starting to create a WalkError type for walking that will not bubble up. Tom Alexander 2020-05-09 13:54:39 -04:00
  • 7d63d6ef7b
    Merge Cant and Wont Walk. Tom Alexander 2020-05-09 13:51:02 -04:00
  • 2108f5cace
    Remove CantRender, it was unused. Tom Alexander 2020-05-09 13:46:12 -04:00
  • efd103b84a
    Running into a lifetime issue Tom Alexander 2020-05-08 22:34:58 -04:00
  • 2f515e068d
    Implemented the renderer logic. Tom Alexander 2020-05-08 22:22:30 -04:00
  • b45448edbd
    Moved ParametersContext to its own file. Tom Alexander 2020-05-08 22:12:35 -04:00
  • 1a6db195cb
    Starting a context for partial parameters. Tom Alexander 2020-05-08 20:58:32 -04:00
  • f240b877b8
    Start of rendering partials. Tom Alexander 2020-05-08 19:24:32 -04:00
  • ec321a17ca
    Adding a v0 to partial_jump_around_one to prove that the partial parameters are inserted 1 level above the current context. Tom Alexander 2020-05-08 18:48:33 -04:00
  • 50c03b4f0f
    Expanding the partial jump around tests. Tom Alexander 2020-05-08 18:34:49 -04:00
  • f47b91f8e7
    Starting a more complicated test for partials to investigate scoping. Tom Alexander 2020-05-08 18:19:33 -04:00
  • 7087157ed3
    Add partial test for walking up context vs parameters Tom Alexander 2020-05-07 19:28:22 -04:00
  • 0fcb70927c
    Add an initial test of partial parameters Tom Alexander 2020-05-07 19:12:45 -04:00
  • 467a810569
    Merge branch 'exists' into render Tom Alexander 2020-05-06 20:33:02 -04:00
  • dedfa79630
    Do a truthiness check on references before printing them. Tom Alexander 2020-05-06 20:30:03 -04:00
  • b45688351e
    Rendering a reference appears to do a truthiness check because false renders an empty string despite rendering as "false" in an array element. Tom Alexander 2020-05-06 20:13:33 -04:00
  • 0f47000a9b
    Add support for the exists tag. Tom Alexander 2020-05-06 19:10:09 -04:00
  • 35f1ba8447
    Merge branch 'walk_up_context' into render Tom Alexander 2020-05-05 20:47:58 -04:00
  • 3cf47fa1a8
    Rename the new functions to replace the old functions. Tom Alexander 2020-05-05 20:46:31 -04:00
  • 18f9fb7f57
    Delete old render functions. Tom Alexander 2020-05-05 20:43:53 -04:00
  • 05527377c4
    Finish porting over the walk test. Tom Alexander 2020-05-05 20:38:42 -04:00
  • 9c414d4d06
    Fixed rendering else blocks. Tom Alexander 2020-05-05 20:32:30 -04:00
  • 5760566be0
    Start of porting over the walk tests. Tom Alexander 2020-05-05 20:22:25 -04:00
  • 26fe996b0d
    Implement the new render functions. Tom Alexander 2020-05-05 19:51:07 -04:00
  • a3bb8e47c1
    Implemented the backtracing logic for walking. Tom Alexander 2020-05-04 23:45:21 -04:00
  • 6bcc66dff5
    Adding NotFound error type. Tom Alexander 2020-05-04 23:36:13 -04:00
  • 033fc9de6b
    Implement walking for a single segment, Tom Alexander 2020-05-04 23:10:35 -04:00
  • c3fe7b47af
    Added a test for backtracking. Tom Alexander 2020-05-03 16:49:34 -04:00
  • 2b6c3990a9
    Add test for a multi-step walk into a parent context. Tom Alexander 2020-05-03 16:32:29 -04:00
  • 45facfed0d
    Improve the walk up test to prove that DustJS is doing dynamic scoping, not lexical scoping. Tom Alexander 2020-05-03 16:13:29 -04:00
  • 9adb88d132
    Added a test case for walking up the context Tom Alexander 2020-05-03 15:47:21 -04:00
  • e957caf386
    Render the else block in sections if the path does not exist or if the path can't be walked. Tom Alexander 2020-05-03 15:29:02 -04:00
  • cc6dbefcdb
    Implement specials in the renderer. Tom Alexander 2020-05-03 14:52:08 -04:00
  • 7f65e73229
    Merge branch 'bug_tags_separated_by_whitespace' into render Tom Alexander 2020-05-03 14:46:12 -04:00
  • bafff8e7a0
    Finished transitioning to the new top-level ignored whitespace template element. Tom Alexander 2020-05-03 14:44:09 -04:00