Commit Graph

  • 908ae078b0
    Start of making ignored whitespace a top-level template element to handle it in a more generic fashion. Tom Alexander 2020-05-03 13:43:49 -04:00
  • b8c59f012b
    Expanded the test definition and fixed part of the problem. Tom Alexander 2020-05-03 13:21:02 -04:00
  • 7670db9259
    Identified an issue where tags separated by only whitespace are breaking parsing. Tom Alexander 2020-05-03 13:07:27 -04:00
  • f97bb25ca8
    Integrated the new span class Tom Alexander 2020-05-03 12:48:02 -04:00
  • b8e8f19724
    Implemented a new span to trim leading whitespace. Tom Alexander 2020-05-03 12:28:55 -04:00
  • 31029bf50b
    Add a test for whitespace inside the template. Tom Alexander 2020-05-02 17:54:26 -04:00
  • 82fb4964ee
    Merge branch 'trait_wrapper' into render Tom Alexander 2020-05-02 17:23:29 -04:00
  • 9a261aa870
    Fixed lifetime issue Tom Alexander 2020-05-02 16:08:39 -04:00
  • 7b87e30ff9
    Fixed returns but hitting lifetime issue Tom Alexander 2020-05-02 16:04:10 -04:00
  • caa79d5ba2
    Moving towards a generic trait wrapper to call between dynamic and static dispatch functions. Tom Alexander 2020-05-02 15:55:38 -04:00
  • 3cfc294e93
    Add an array-context test case for the sections test Tom Alexander 2020-04-28 20:47:26 -04:00
  • f0a69d12b9
    First attempt at a section render function. Tom Alexander 2020-04-28 20:46:29 -04:00
  • e5c4ba8c82
    Add a Loopable trait for dust sections. Tom Alexander 2020-04-28 19:34:52 -04:00
  • c961cf7ab8
    Combine the render traits into a single context_element file. Tom Alexander 2020-04-28 19:09:02 -04:00
  • 41ad6179d1
    Parse self-references and add a test for sections. Tom Alexander 2020-04-28 19:02:43 -04:00
  • 71181fbd9a
    Add a test case for comments Tom Alexander 2020-04-12 22:10:16 -04:00
  • 8e4f5e3229
    Fixing warnings Tom Alexander 2020-04-12 21:57:42 -04:00
  • 883bda7a78
    Added the signature for passing filters into the render function. Tom Alexander 2020-04-12 21:54:15 -04:00
  • 70cb107f86
    Removing unused imports Tom Alexander 2020-04-12 21:44:38 -04:00
  • d813a66610
    Add test for booleans and null Tom Alexander 2020-04-12 21:42:08 -04:00
  • 7a28e6a9d4
    Handle rendering json arrays and objects Tom Alexander 2020-04-12 21:40:34 -04:00
  • 24d2c1831c
    Handle missing references Tom Alexander 2020-04-12 21:26:23 -04:00
  • fe32edbc28
    Update gitignore for compliance tests Tom Alexander 2020-04-12 21:19:28 -04:00
  • 0c4e97c556
    typo Tom Alexander 2020-04-12 21:14:21 -04:00
  • cc52c3ad05
    Merge branch 'render_result' into render Tom Alexander 2020-04-12 21:09:17 -04:00
  • 610adc8b72
    Switch the Renderable trait over to the returning a RenderError Tom Alexander 2020-04-12 21:03:55 -04:00
  • 9c7883358a
    Better error handling added to walkable Tom Alexander 2020-04-12 20:52:30 -04:00
  • a647ed6d43
    fix tests Tom Alexander 2020-04-12 18:31:27 -04:00
  • d51392fe8a
    Initial move to returning results from render calls. Tom Alexander 2020-04-12 18:29:40 -04:00
  • d30749f709
    Updated to the latest nom Tom Alexander 2020-04-12 17:39:24 -04:00
  • 28b5cf1d34
    Fix handling of surrounding whitespace Tom Alexander 2020-04-12 16:02:26 -04:00
  • 4856fb6d11
    Support passing args to the dockerized test runner Tom Alexander 2020-04-12 15:47:38 -04:00
  • aa24f50dfa
    Merge branch 'docker_compliance_tests' into render Tom Alexander 2020-04-12 15:25:32 -04:00
  • 8435028a55
    Dockerized tests are now working and added a flag to toggle showing the test case diff. Tom Alexander 2020-04-12 15:24:38 -04:00
  • aa7155d467
    Correctly counting test failures Tom Alexander 2020-04-12 14:44:53 -04:00
  • db575d145e
    Initial attempt at docker compliance tests. Tom Alexander 2020-04-12 14:37:54 -04:00
  • 542c2c4536
    Switching render_template to render_body. Tom Alexander 2020-04-11 23:03:07 -04:00
  • 869c32df21
    Moving the custom types for the walk_path test inside the test function Tom Alexander 2020-04-11 22:54:48 -04:00
  • 273f6204d8
    Rendering my first template with actually following paths. Tom Alexander 2020-04-11 22:52:20 -04:00
  • e5e1703fab
    Implement ContextElement for serde_json::Value Tom Alexander 2020-04-11 22:47:31 -04:00
  • 0f60baf31c
    Merge branch 'walkable' into render Tom Alexander 2020-04-11 22:37:27 -04:00
  • dbfa7ea4dc
    Cleaning up Tom Alexander 2020-04-11 22:36:22 -04:00
  • 47bb055b67
    I think its working Tom Alexander 2020-04-11 22:23:59 -04:00
  • 5efa650b67
    Switching to a combined ContextElement trait for Walkable and Renderable Tom Alexander 2020-04-11 22:19:54 -04:00
  • 07e5c9f0af
    turns out putting dyn everywhere fixes it Tom Alexander 2020-04-11 22:04:44 -04:00
  • c094997032
    Getting rid of some lifetimes Tom Alexander 2020-04-11 21:59:21 -04:00
  • 5098ee6338
    Switching over to dyn Walkables Tom Alexander 2020-04-11 21:57:24 -04:00
  • ec3276af79
    Much cleaner with impl walkable but don't know if I can loop yet Tom Alexander 2020-04-11 21:51:12 -04:00
  • 110b03fc45
    Going to try returning impl trait before resorting to boxing Tom Alexander 2020-04-11 21:44:42 -04:00
  • 43e57f4134
    setup for moving into a multi-step walk function Tom Alexander 2020-04-11 21:26:36 -04:00
  • f62d50df95
    Taking 1 step in a deep context is working! Tom Alexander 2020-04-11 21:20:45 -04:00
  • d89d3d9f3c
    Added another test proving do_the_walk is now generic Tom Alexander 2020-04-11 21:13:21 -04:00
  • 54e6613f14
    do_the_walk may be generic now? Tom Alexander 2020-04-11 21:12:42 -04:00
  • c647301662
    removing unnecessary lifetime Tom Alexander 2020-04-11 21:08:33 -04:00
  • 9e1f102540
    removing unnecessary static Tom Alexander 2020-04-11 21:07:39 -04:00
  • 63124bc6e3
    Adding &str Tom Alexander 2020-04-11 21:07:12 -04:00
  • d296ad6b56
    Maybe have a generic implementation of walkable working Tom Alexander 2020-04-11 21:03:21 -04:00
  • 7ace4be3c7
    working on two levels Tom Alexander 2020-04-11 20:34:16 -04:00
  • d5c3985c29
    initial walkable implementation Tom Alexander 2020-04-11 20:31:44 -04:00
  • 15c8ee57a7
    Successfully rendering my first template. Tom Alexander 2020-04-11 19:19:40 -04:00
  • e26b158ab4
    Initial implementation of custom Renderable trait. Tom Alexander 2020-04-11 19:11:14 -04:00
  • af5122ab9f
    Figured out how to get a value using to_string() Tom Alexander 2020-04-11 19:03:41 -04:00
  • 265afe7eeb
    I think I figured out how to get the Index trait back into the generic type. Tom Alexander 2020-04-11 18:49:47 -04:00
  • f65a144b3c
    Beginning of the render_tag function. Tom Alexander 2020-04-11 18:40:36 -04:00
  • 2459d7b418
    Rendering spans Tom Alexander 2020-04-11 18:25:48 -04:00
  • 13934e8699
    Rename DustContext to DustRenderer Tom Alexander 2020-04-10 20:58:55 -04:00
  • 2842d0a14a
    Loading the compiled templates into a context Tom Alexander 2020-04-10 20:55:44 -04:00
  • 743106684a
    compiling templates in the same manner as the shim Tom Alexander 2020-04-10 20:27:27 -04:00
  • 7e0a617ba6
    Add support for supplying multiple templates to the dustjs shim to support testing partials. Tom Alexander 2020-04-10 19:07:02 -04:00
  • 608c55575e
    Merge branch 'helpers' Tom Alexander 2020-04-10 19:05:09 -04:00
  • 05d9e20a8f
    Add all the helpers Tom Alexander 2020-04-07 21:49:28 -04:00
  • 15c732b3a3
    Also stealing the ParameterizedBlock struct Tom Alexander 2020-04-07 20:37:15 -04:00
  • b7120a34de
    Forking the partial code for reuse as helper code Tom Alexander 2020-04-07 20:21:26 -04:00
  • ad33f98404
    Merge branch 'partials' Tom Alexander 2020-04-07 19:56:44 -04:00
  • 2ebe4798d5
    Add test for quoted partial Tom Alexander 2020-04-07 19:53:57 -04:00
  • e2f03de297
    Integrated the partial parser into the rest of the grammar Tom Alexander 2020-04-07 19:51:06 -04:00
  • 8bfa622c4c
    parsing out string literals in addition to paths Tom Alexander 2020-04-06 23:47:50 -04:00
  • 79100fc50f
    Introducing a KVPair type Tom Alexander 2020-04-06 23:35:09 -04:00
  • dd8b4ac28c
    Introducing an RValue enum to handle paths vs literals Tom Alexander 2020-04-06 23:30:42 -04:00
  • 8641e5a98b
    Starting stand-alone parsers for key value pairs Tom Alexander 2020-04-06 23:21:03 -04:00
  • ffce2b0569
    The extra steps are making it harder to debug, so move parser directly into test Tom Alexander 2020-04-06 22:47:24 -04:00
  • 647c22b3a9
    Initial scaffold for partials Tom Alexander 2020-04-06 22:02:10 -04:00
  • c6f43820ca
    Merge branch 'quoted_strings' Tom Alexander 2020-04-06 21:26:29 -04:00
  • 989bc6ed2a
    Added backslash to the quoted string test Tom Alexander 2020-04-06 21:26:08 -04:00
  • a6e48aee6a
    Switch to escaped_transform to unescape the text. Tom Alexander 2020-04-06 21:09:06 -04:00
  • 5463ed2cdf
    Added surrounding quotes Tom Alexander 2020-04-06 21:03:03 -04:00
  • 878cbf56ca
    Switch to raw strings Tom Alexander 2020-04-06 20:47:17 -04:00
  • a0b032ad4b
    I was missing an escape character Tom Alexander 2020-04-06 20:45:39 -04:00
  • 586823aa8a
    first test case failing Tom Alexander 2020-04-06 20:34:04 -04:00
  • b3120d2e52
    Initial scaffold for developing a quoted string parser Tom Alexander 2020-04-06 20:20:53 -04:00
  • 41abcb9b4a
    Add support for named blocks Tom Alexander 2020-04-05 23:47:55 -04:00
  • 52824b4d0b
    Rename the container parser to conditional. Tom Alexander 2020-04-05 19:39:07 -04:00
  • de4f420627
    separate out the parser for key because partials don't use a full path, only a key Tom Alexander 2020-04-05 19:34:46 -04:00
  • 7f2c7151a9
    Rename Block to Body because dust uses the name Block for {+ Tom Alexander 2020-04-05 19:29:16 -04:00
  • fb17911c44
    Change repo to generate both a library and a binary. Tom Alexander 2020-04-05 19:12:48 -04:00
  • 0d659afa2f
    Rename duster module to parser Tom Alexander 2020-04-05 18:51:14 -04:00
  • 34882024b3
    Add support for else blocks Tom Alexander 2020-04-05 17:24:13 -04:00
  • 9da8ea7294
    Add support for self-closing containers Tom Alexander 2020-04-05 17:12:48 -04:00
  • fff229df90
    Integrated exists and not exists containers Tom Alexander 2020-04-05 17:05:22 -04:00
  • 5f297eca78
    Beginning of creating a generic Container parser Tom Alexander 2020-04-05 16:53:15 -04:00