Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 24, 2011
  1. Boris Moore

    Added debugMode switch.

    BorisMoore authored
    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. Boris Moore
  2. Boris Moore
  3. Boris Moore
  4. Boris Moore

    Bug fix on setDelimiters

    BorisMoore authored
Commits on Oct 22, 2011
  1. Boris Moore

    Added $views.setDelimiters function for customizing tags: Simply call

    BorisMoore authored
    $views.setDelimiters( startTag, endTag ); before rendering or compiling
    temlates. e.g. $views.setDelimiters( "\\[\\[", "\\]\\]" ); to use tags such
    as [[=foo]] instead of {{=foo}}
  2. Boris Moore

    {{=foo}} now renders an empty string when foo is undefined.

    BorisMoore authored
    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. Boris Moore

    Simplified parameters passed to custom tag functions.

    BorisMoore authored
    Added support for named parameters on {{if}} for testing equality or sorting
    Named parameters supported are:
    eq: ===
    ne: !==
    lt: <
    gt: >
    le: <=
    ge: >=
    Examples:
    {{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
  1. Boris Moore
Commits on Oct 9, 2011
  1. Boris Moore
Commits on Oct 3, 2011
  1. Boris Moore

    Added links to JsViews project including new demo sequence from jQuer…

    BorisMoore authored
    …y Conference, Boston, October 2011.
Commits on Sep 27, 2011
  1. Boris Moore
  2. Boris Moore
  3. Boris Moore

    Major update - moving to 'codeless' markup syntax, inspired by 'logic…

    BorisMoore authored
    …less'
    
    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. Boris Moore

    Improved named parameter support. Provided 'content="#myTemplate"...' as

    BorisMoore authored
    standard way to point to external templates e.g. on
    {{each data content="#myTemplate"}}
  2. Boris Moore

    Added support for passing named parameters to tags.

    BorisMoore authored
    Organized methods under tmpl namespace.
    Added new demo pages for named parameters
Commits on Sep 21, 2011
  1. Boris Moore
Commits on Sep 20, 2011
  1. Boris Moore
Commits on Sep 17, 2011
  1. Boris Moore

    In-progress implementation of codeless approach to jsrender, using a new

    BorisMoore authored
    syntax similar to Mustache and Handlebars.
    New folder - step-by-step-codeless - contains demos and samples using
    "jsrender-codeless".
Commits on Sep 9, 2011
  1. Boris Moore
Commits on Aug 17, 2011
  1. Boris Moore
  2. Boris Moore
  3. Boris Moore

    Added a new non-jQuery-dependent version: jsrender.js, plus a set of …

    BorisMoore authored
    …samples
    
    using it: /demos/step-by-step-nojquery/*
Commits on Jul 30, 2011
  1. Boris Moore
Commits on Jul 28, 2011
  1. Boris Moore
Commits on Jul 27, 2011
  1. Boris Moore

    Improved/simplified approach to passing context to templates, as $ctx…

    BorisMoore authored
    …, 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. Boris Moore

    Support for $.template( name, templateString) where templateString ca…

    BorisMoore authored
    …n be
    
    ANY string that is not a valid jQuery selector.
    Samples cleanup.
Commits on Jun 16, 2011
  1. Boris Moore
Commits on Jun 8, 2011
  1. Boris Moore
  2. Boris Moore
  3. Boris Moore

    Small fixes for BorisMoore#1 and in

    BorisMoore authored
    some demo pages.
  4. Boris Moore

    Small fixes for BorisMoore#1 and in

    BorisMoore authored
    some demo pages.
Commits on May 5, 2011
  1. Boris Moore

    Added temporary support for switching to annotate=true when JsViews l…

    BorisMoore authored
    …oaded.
    
    To do: Need to provide callout that JsViews can use to insert annotations
Commits on Apr 26, 2011
  1. Boris Moore

    Changes $item to $view.

    BorisMoore authored
    Template Items now corresponds to Views and SubViews.
    This alines with use of JsViews on top of JsRender, for interactive scenarnios.
  2. Boris Moore
Something went wrong with that request. Please try again.