Commits on Oct 13, 2011
  1. Edited README.md via GitHub

    Boris Moore committed Oct 13, 2011
  2. Edited README.md via GitHub

    Boris Moore committed Oct 13, 2011
  3. Edited README.md via GitHub

    Boris Moore committed Oct 13, 2011
  4. Edited README.md via GitHub

    Boris Moore committed Oct 13, 2011
  5. Edited README.md via GitHub

    Boris Moore committed Oct 13, 2011
  6. Edited README.md via GitHub

    Boris Moore committed Oct 13, 2011
Commits on Mar 10, 2011
  1. @BorisMoore

    Updated readme to make really clear that this is not the main reposit…

    …ory for jQuery Templates.
    BorisMoore committed Mar 10, 2011
Commits on Oct 7, 2010
  1. @BorisMoore

    Modified readme.

    BorisMoore committed Oct 6, 2010
Commits on Oct 5, 2010
  1. @BorisMoore

    Updated readme

    BorisMoore committed Oct 5, 2010
Commits on Oct 4, 2010
  1. @BorisMoore
Commits on Sep 28, 2010
  1. @BorisMoore

    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 Sep 28, 2010
Commits on Sep 24, 2010
  1. @BorisMoore

    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 Sep 24, 2010
Commits on Sep 20, 2010
  1. @BorisMoore

    Added disclaimer.txt

    BorisMoore committed Sep 20, 2010
  2. @BorisMoore
Commits on Sep 15, 2010
  1. @BorisMoore
Commits on Sep 7, 2010
  1. @BorisMoore

    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. @BorisMoore

    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 3, 2010
Commits on Sep 1, 2010
  1. @BorisMoore

    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
  1. @BorisMoore
Commits on Aug 25, 2010
  1. @BorisMoore

    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. @BorisMoore

    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. @BorisMoore

    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
  1. @BorisMoore
Commits on Aug 4, 2010
  1. @BorisMoore

    Added update method to template instance.

    This enabled simplification of all the interactive sample demos.
    BorisMoore committed Aug 3, 2010
  2. @BorisMoore

    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 3, 2010
Commits on Aug 2, 2010
  1. @BorisMoore

    Added a new demos folder:

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

    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. @BorisMoore
  2. @BorisMoore

    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 22, 2010
Commits on Jul 13, 2010
  1. @BorisMoore

    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
  2. @BorisMoore

    Changed the term: 'template context', to 'template item' - less techy…

    … and
    
    more intuitive in meaning. A template renders against data, resulting in one
    template item (i.e. rendered template instance) for each data item, if the data
    is an array. If not, then it renders a single template item.
    
    The data structure (JS object) associated with a rendered template instance
    is also referred to as the template item. It has a parent, a data property,
    a template property, and a nodes property.
    
    Instead of trying to make the tmpl plugin play a dual role - rendering tempplates
    against data, and also returning the template context (now template item) of a
    target element, it is now used ONLY for rendering templates. Getting the
    template item of a target element is now provided by a specific plugin: tmplItem.
    
    So we have:
    A) $.tmpl and $.fn.tmpl - for rendering a template against data
    B) $.templates and $.fn.templates - for compiling markup and caching it as a
    named template, or for accessing the cached named template.
    C) $.tmplItem and $.fn.tmplItem - for getting the template item of a target
    element.
    
    This change also allows for a simpler more straightforward implementation of
    $.tmpl, and reduces the total size slightly.
    BorisMoore committed Jul 13, 2010
Commits on Jul 12, 2010
  1. @BorisMoore

    New version of last commit but one, that was reverted.

    Moved some private helper functions out of inner function scopes, for
    memory optimization.
    
    Added support for white space after target in tmpl tag, e.g. ${ foo } or
    ${ foo(x) }
    
    Added support for targets that include '.'s and calls to functions, e.g.
    ${foo.toLowerCase()} - at least for simple cases.
    
    Added support for implicit passing of $data to nested tmpl when no
    parameters, so that {{tmpl "#myTmpl"}} is equivalent to
    {{tmpl() "#myTmpl"}}, to {{tmpl(null) "#myTmpl"}}, and to
    {{tmpl($data) "#myTmpl"}}, and so allows myTmpl to bind to the same data
    as the parent template.
    (But {{tmpl(foo) "#myTmpl"}} or {{tmpl({}) "#myTmpl"}} will replace the
    inherited $data value.)
    
    Added support for inserting a template without data, using
    $( "#tmpl" ).tmpl(null).appendTo( "#container" ); - which is equivalent to
    $( "#tmpl" ).tmpl( {} ).appendTo( "#container" );
    BorisMoore committed Jul 12, 2010
  2. @BorisMoore

    Revert previous commit, because of some issues.

    That commit will be replaced by an update with issues resolved...
    
    This reverts commit a702bbf.
    BorisMoore committed Jul 12, 2010
Commits on Jul 11, 2010
  1. @BorisMoore

    Moved some private helper functions out of inner function scopes, for

    memory optimization.
    
    Added support for white space after target in tmpl tag, e.g. ${ foo } or
    ${ foo(x) }
    
    Added support for targets that include '.'s and calls to functions, e.g.
    ${foo.toLowerCase()}
    
    Added support for implicit passing of $data to nested tmpl when no
    parameters, so that {{tmpl "#myTmpl"}} is equivalent to
    {{tmpl() "#myTmpl"}}, to {{tmpl(null) "#myTmpl"}}, and to
    {{tmpl($data) "#myTmpl"}}, and so allows myTmpl to bind to the same data
    as the parent template.
    (But {{tmpl(foo) "#myTmpl"}} or {{tmpl({}) "#myTmpl"}} will replace the
    inherited $data value.)
    
    Added support for inserting a template without data, using
    $( "#tmpl" ).tmpl(null).appendTo( "#container" ); - which is equivalent to
    $( "#tmpl" ).tmpl( {} ).appendTo( "#container" );
    BorisMoore committed Jul 10, 2010