Permalink
Switch branches/tags
Nothing to show
Commits on Jul 21, 2010
  1. Data parameter is not required.

    borgar committed Jul 21, 2010
    For includes, localized static blocks, or static html blocks it seems excessive to require the data parameter.
  2. Fixing broken tests HTML.

    borgar committed Jul 21, 2010
  3. Added a couple of exceptions where they seemed warranted (iterating n…

    benblank committed with borgar Jun 24, 2010
    …on-iterables, including non-existent templates).
  4. Restructured use of `safe_var` to make all args automatically safe, r…

    benblank committed with borgar Jun 23, 2010
    …efactored `$1` and `$2` in commands to `$ARGS` and `$FNARGS`, respectively.
  5. Changed includes to use the current context rather than the original …

    benblank committed with borgar Jun 19, 2010
    …data set, as this allows more powerful nested templates.
  6. Made {{each}} args typesafe and callable (for consistency with {{=}} …

    benblank committed with borgar Jun 9, 2010
    …and {{html}}), added more unit tests for {{each}}.
Commits on Jun 8, 2010
  1. Changed tag-matching regex to respect the contents of strings. (This …

    benblank committed Jun 8, 2010
    …fixes the tags-in-strings test cases.)
  2. Updated test_handler() to better reflect operation of $.render(), cha…

    benblank committed Jun 8, 2010
    …nged empty variable tag tests to reflect current behavior, which seems far more useful.
  3. Added tests for first-iteration detection and node data caching, fixe…

    benblank committed Jun 8, 2010
    …d test for named template caching.
Commits on May 4, 2010
  1. Adding an include tag.

    borgar committed May 4, 2010
  2. Replaced escape function.

    borgar committed May 4, 2010
Commits on Apr 24, 2010
  1. Introducing `as` keyword for arguments.

    borgar committed Apr 24, 2010
    This changes argument syntax from `{{ tag(x, y) a }}` to `{{ tag a as x, y }}`.
    
    Currently this affects only `each` and `with`:
    `{{ each(i,item) arr }}` changes to `{{ each arr as i, item }}`
    `{{ with(item) foo.bar.baz }}` changes to `{{ with foo.bar.baz as item }}`
Commits on Apr 23, 2010
  1. Adding a `with` tag.

    borgar committed Apr 23, 2010
  2. Adding a "stack" for keeping arguments between open/close tags.

    borgar committed Apr 23, 2010
    The arguments passed to the opening tags `{{ each(arr) "foo" }}` were lost when tag.suffix is rendered. This seems contrary to the intention of the original code, which tries to render arguments to suffixes without ever having any.
    
    Extra points: Nesting is tested for tags which use both suffix & prefix.
  3. Removing comment tags.

    borgar committed Apr 23, 2010
    These seem inferior to comment syntax in most ways. Since there isn't a clean way to prevent comment tags from failing on inferior syntax they have spurious advantages over the simpler `{# #}` comments.
  4. Use $SAFE for "protected" variables.

    borgar committed Apr 23, 2010
    This exposes the protected variable construct to tag developers.
Commits on Apr 17, 2010
  1. Fixing a parsing regression.

    borgar committed Apr 17, 2010
  2. Adding javascript language restrictions.

    borgar committed Apr 17, 2010
    This is intended to block any usage of operators and keywords that have to do with either creating new objects or mutating them. This is supposed to deter users from adding complex logic into the templates. It is, of course, still possible for user to mutate the data objects with member methods.
  3. Rewrote parser.

    borgar committed Apr 17, 2010
    New one is likely slightly slower but produces faster templates (removes redundant ` _.push('')` statements).
    It is hopefully less sensitive to whitespace and works with single quotes.
  4. Adding tests.

    borgar committed Apr 17, 2010