forked from BorisMoore/jquery-tmpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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" );
- Loading branch information
1 parent
8fc69f4
commit a702bbf
Showing
7 changed files
with
146 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.