Permalink
Switch branches/tags
Nothing to show
Commits on Dec 16, 2010
  1. separated the tests

    committed Dec 16, 2010
Commits on Dec 1, 2010
Commits on Nov 26, 2010
  1. Corrected version number to follow convention used in jQuery and jQue…

    …ry UI.
    
    Tagged Betas will have specific version numbers, 1.0.b2 etc, and other intermediate builds prior to the v1.0 release will be 1.0pre
    BorisMoore committed Nov 26, 2010
Commits on Nov 25, 2010
  1. Fix for override of appendTo and related methods, corresponding to re…

    …lated fix in jQuery 1.4.2, for ticket #6227.
    
    Also revert the change for preventing options.data overriding data. See comment in previous commit.
    BorisMoore committed Nov 25, 2010
Commits on Nov 23, 2010
  1. Fix to prevent calls to .tmpl being able to modify data.

    With the fix you cannot pass in data as a data field of the options map which you pass to .tmpl or $.tmpl.
    See http://bugs.jquery.com/ticket/7115.
    BorisMoore committed Nov 23, 2010
Commits on Oct 20, 2010
Commits on Oct 9, 2010
  1. Updated Readme with CDN paths

    Added minified files
    BorisMoore committed Oct 9, 2010
Commits on Oct 4, 2010
  1. Modified readme

    BorisMoore committed Oct 4, 2010
Commits on Sep 28, 2010
  1. Fixed Regex expression to prevent some parsing errors where the

    opening paren was taken from one template tag, and the closing paren
    from the next.
    BorisMoore committed with Boris Moore Sep 28, 2010
  2. Fix to processItemKey to make it more robust to deal with

    'unexpected situations', e.g. IE9 Beta, which seems to remove the
    parentNode attribute from the immediate child nodes of a Document Fragment.
    This change may also fix Issue 25.
    BorisMoore committed with Boris Moore Sep 24, 2010
Commits on Sep 20, 2010
  1. Added disclaimer.txt

    BorisMoore committed Sep 20, 2010
Commits on Sep 15, 2010
Commits on Sep 7, 2010
  1. Added increased support for parens within template tags.

    For example, though {{if a===b}} is the correct form, you can now also
    write: {{if (a===b)}} without causing parsing errors.
    Of course you can also call functions: {{if getValue(a)}} as before.
    BorisMoore committed Sep 7, 2010
Commits on Sep 4, 2010
  1. Added support for elseif semantics, and a new comment tag.

    For if, else if, else use: {{if a}}...{{else b}}...{{else}}...{{/if}}
    For comments within templates, use {{! Here is my comment }}.
    Added a new sample: samplesCore/condition.html, to illustrate use of these
    template tags.
    BorisMoore committed Sep 4, 2010
Commits on Sep 1, 2010
  1. Fix for case of template tag parameters of the form a.b(), to skip auto

    detect of whether the return value of the function is itself of type
    function.
    The change is better for perf, has slightly reduced code size, and ensures
     (for non idempotent functions) that the function will only be called once.
    BorisMoore committed Sep 1, 2010
Commits on Aug 31, 2010
Commits on Aug 25, 2010
  1. Fixes for issues 6 and 8.

    Replace $.trim by jQuery.trim
    Replaced elem = tmpl[0] by elem = elem[0]
    BorisMoore committed Aug 25, 2010
Commits on Aug 24, 2010
  1. Fixed issue 5 for parenting of {{wrap}} items, and associated issue of

    double events and potential memory leak.
    
    Also a couple of other minor bug fixes.
    
    Changed samples to always use parens when calling functions as template
    tag parameters, since this is better practice. (Implicit function
    invocation support only works in certain cases - basically when the
    function is the only token in the expression, and not part of a more
    complex expression. For this reason support for implicit function calls
    may be removed later.)
    BorisMoore committed Aug 24, 2010
Commits on Aug 23, 2010
  1. Fixed minor bug in domManip override.

    Changed Template Tags map to be named jQuery.tmpl.tag, rather than
    jQuery.tmpl.tags, for consistency. (Just as jQuery.template, rather than
    jQuery.templates, is the map for named templates).
    
    Changed convention on all samples to use <script type="text/x-jquery-tmpl">
    rather than type="text/html". (Needs a specific mime-type, so that future
    tooling can provide an appropriate experience).
    BorisMoore committed Aug 23, 2010
Commits on Aug 9, 2010
Commits on Aug 4, 2010
  1. Added update method to template instance.

    This enabled simplification of all the interactive sample demos.
    BorisMoore committed Aug 4, 2010
  2. Added support for 'wrapped templates'.

    Additional samples illustrating wrapping feature provided, under
    "demos/samplesCore/interactivity".
    Fairly significant changes in tmpl.js to support this functionality...
    BorisMoore committed Aug 4, 2010
Commits on Aug 2, 2010
  1. Added a new demos folder:

    jquery-tmpl\demos\samplesCore\Interactive
    with one new sample for now: treeView.html
    BorisMoore committed Aug 2, 2010
Commits on Jul 26, 2010
  1. Replaced sample page samplesTmplPlus/basic.htm

    Fixed issue #2 when using .append( tmpl, data ); (with tmplPlus.js)
    
    $.templates( someString ) now accepts a name, a selector, or an
    HTML string with at least one HTML tag. The last case is then equivalent
    to $.templates( null, someString ), and returns the compiled template.
    BorisMoore committed Jul 26, 2010
Commits on Jul 23, 2010
  1. Fix to ignore null or undefined members of array data,

    when using .tmpl(dataArray) to render template against the array
    
    Fix so that ${foo} when foo is a function will call foo with the
    template item as 'this' pointer, rather than having the current data item
    as 'this' and passing the template item as a parameter. This removes
    dependencies on the signature of the function, so existing functions (not
    designed to be called on some this object) will work.
    BorisMoore committed Jul 23, 2010
Commits on Jul 13, 2010
  1. Added to jquery.tmplPlus a feature for making it really easy to maintain

    an array of newly added template items that have been created during
    append or appendTo. (Just add your array as 'addedTmplItems' property on
    options). This is particularly useful when using the tmplCmd plugin.
    
    A version of this feature already existed in a version some time back but
    had been removed in commit: http://github.com/nje/jquery-tmpl/commit/395b3593225f96c5325816d63c9f042a2a1310fc
    to simplify implementation for appendTo. It now works for both append and appendTo
    patterns.
    
    Also changed some variable names within samples and within the implementation
    to make absolutely clear when a variable is a 'template item'. (Thanks to
    Steven Black for discussion on this.)
    BorisMoore committed Jul 13, 2010