This avoids some of the odd behavior of the previous conditional-template implementation. If the AST were cached it could also be much faster, but oh well.
Looks good. FYI all library JS and tests are linted using the rule set here (see latest commit on branch where I cleaned up some linting issues). Something to keep in mind for future dev work.
This avoids some of the odd behavior of the previous conditional-template implementation. If the AST were cached it could also be much faster, but oh well.