Switch branches/tags
Nothing to show
Commits on Oct 24, 2011
  1. Added debugMode switch.

    BorisMoore committed Oct 24, 2011
    Reverted feature in {{#if}} for testing lt, gt, eq etc. Since this will be
    replaced by a different approach.
    Removed sample on chained tags, since this design is likely to change.
    Simplified regular expression for tags - restricting custom tags to \w+
Commits on Oct 23, 2011
  1. Bug fix on setDelimiters

    BorisMoore committed Oct 23, 2011
Commits on Oct 22, 2011
  1. Added $views.setDelimiters function for customizing tags: Simply call

    BorisMoore committed Oct 22, 2011
    $views.setDelimiters( startTag, endTag ); before rendering or compiling
    temlates. e.g. $views.setDelimiters( "\\[\\[", "\\]\\]" ); to use tags such
    as [[=foo]] instead of {{=foo}}
  2. {{=foo}} now renders an empty string when foo is undefined.

    BorisMoore committed Oct 22, 2011
    This replaces previous implementation for {{=foo undef=""}}, and is a better
    alternative since it has been able to be achieved without significant
    impact on perf - and so is acceptable, rather than requiring setting an
    'undef' named parameter.
    See BorisMoore#7
Commits on Oct 20, 2011
  1. Simplified parameters passed to custom tag functions.

    BorisMoore committed Oct 20, 2011
    Added support for named parameters on {{if}} for testing equality or sorting
    Named parameters supported are:
    eq: ===
    ne: !==
    lt: <
    gt: >
    le: <=
    ge: >=
    {{if firstName lastName gt="a" lt="b"}} will test for either first or
    last name starting with "a".
    {{if firstName lt=lastName}} will test for first name being before the last
    name in alphabetical sort order
Commits on Oct 18, 2011
Commits on Oct 9, 2011
Commits on Oct 3, 2011
  1. Added links to JsViews project including new demo sequence from jQuer…

    BorisMoore committed Oct 3, 2011
    …y Conference, Boston, October 2011.
Commits on Sep 27, 2011
  1. Major update - moving to 'codeless' markup syntax, inspired by 'logic…

    BorisMoore committed Sep 27, 2011
    approach of Mustache and Handlebars. Nevertheless, a special 'allowCode' mode
    allows use of a {{* code... }} tag in templates - actually more powerful than
    previous embedded expressions approach. Many new features associated with the
    new templating implementation. Performances is almost identical to the fasted
    templating engines such as doT, for simple templates. Custom tags are easy
    to register. Compiled template functions are easy to understand and debug...
    For convenience, a folder "previous-version-of-jsrender" is provided with the
    demos and source code for the previous template syntax. This will be removed
    in the future...
Commits on Sep 22, 2011
  1. Improved named parameter support. Provided 'content="#myTemplate"...' as

    BorisMoore committed Sep 22, 2011
    standard way to point to external templates e.g. on
    {{each data content="#myTemplate"}}
  2. Added support for passing named parameters to tags.

    BorisMoore committed Sep 22, 2011
    Organized methods under tmpl namespace.
    Added new demo pages for named parameters
Commits on Sep 21, 2011
Commits on Sep 20, 2011
Commits on Sep 17, 2011
  1. In-progress implementation of codeless approach to jsrender, using a new

    BorisMoore committed Sep 17, 2011
    syntax similar to Mustache and Handlebars.
    New folder - step-by-step-codeless - contains demos and samples using
Commits on Sep 9, 2011
Commits on Aug 17, 2011
  1. Added a new non-jQuery-dependent version: jsrender.js, plus a set of …

    BorisMoore committed Aug 17, 2011
    using it: /demos/step-by-step-nojquery/*
Commits on Jul 30, 2011
Commits on Jul 28, 2011
Commits on Jul 27, 2011
  1. Improved/simplified approach to passing context to templates, as $ctx…

    BorisMoore committed Jul 27, 2011
    …, rather than
    merging on to $view. Integrated with JsViews context support, for passing
    through from $.view, or $.link to the templates (including nested templates)
Commits on Jul 7, 2011
  1. Support for $.template( name, templateString) where templateString ca…

    BorisMoore committed Jul 7, 2011
    …n be
    ANY string that is not a valid jQuery selector.
    Samples cleanup.
Commits on Jun 16, 2011
Commits on Jun 8, 2011
  1. Small fixes for BorisMoore#1 and in

    BorisMoore committed Jun 8, 2011
    some demo pages.
  2. Small fixes for BorisMoore#1 and in

    BorisMoore committed Jun 8, 2011
    some demo pages.
Commits on May 5, 2011
  1. Added temporary support for switching to annotate=true when JsViews l…

    BorisMoore committed May 5, 2011
    To do: Need to provide callout that JsViews can use to insert annotations
Commits on Apr 26, 2011
  1. Changes $item to $view.

    BorisMoore committed Apr 26, 2011
    Template Items now corresponds to Views and SubViews.
    This alines with use of JsViews on top of JsRender, for interactive scenarnios.