Commits on Feb 17, 2011
  1. Added semicolon at end of min files. Closes #73 - Missing semicolumn …

    …at the end of jquery.tmpl.min.js
    rdworth committed Feb 17, 2011
Commits on Feb 7, 2011
  1. Tests: Remove console log

    jzaefferer committed Feb 7, 2011
Commits on Feb 6, 2011
Commits on Feb 5, 2011
  1. Fix for

    Should be able to pass 0 or false as values for data to .tmpl( data ),
    and have the template render against that as a valid data value.
    OTOH passing no data at all, or null, is treated as rendering the template
    once with no data.
    BorisMoore committed Feb 5, 2011
Commits on Feb 4, 2011
  1. Changed the variable used in buildTmplFn from _ to __. (Issue 10)

    Compromise choice: a variable name that is unlikely to exist as a global,
    or as a field name on data, but is not too long, to keep code size down.
    BorisMoore committed Feb 4, 2011
Commits on Jan 5, 2011
  1. Added moviesNoGlobals samples to show how to access functions from te…

    without creating globals.
    - Code is wrapped in  a function closure: (function($) {...})(jQuery);
    - The formatDate function within the closure is called from within the
      template by passing it in with options:
    	$( "#bookingEditTmpl" ).tmpl( booking, { formatDate: formatDate } )
    - and accessing it on the template item, $item:
    BorisMoore committed Jan 5, 2011
  2. Merge branch 'borismoore'

    BorisMoore committed Jan 5, 2011
  3. Fix to no longer set $item as the context for function calls in fnPar…

    …ams of template tags.
    This resolves
    This does not yet address all the aspects of,
    which I hope we will address in a future commit.
    BorisMoore committed Jan 5, 2011
Commits on Dec 30, 2010
Commits on Dec 29, 2010
  1. Adding unit tests. Based on work by borgar and shellscape. Partial fi…

    …x for #26 - some tests are disabled for now.
    jzaefferer committed Dec 29, 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 overriding data. See comment in previous commit.
    BorisMoore committed Nov 25, 2010
  2. Fix for override of appendTo and related methods, corresponding to re…

    …late fix in jQuery 1.4.2, for ticket #6227.
    Also revert the change for preventing 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.
    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
    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