1/7/2024 0 Comments Mustdashe free downloadMarkup: ? at 113562 ops/sec (1.70x faster than HTMLbars) Loops: ? at 98253 ops/sec (1.82x faster than doT) Variables: ? at 158901 ops/sec (1.84x faster than HTMLbars)Ĭhrome (Mac OS X 10.9.1) Complex: ? at 73807 ops/secĬhrome (Mac OS X 10.9.1) Complex: Handlebars at 27460 ops/secĬhrome (Mac OS X 10.9.1) Complex: doT at 50807 ops/secĬhrome (Mac OS X 10.9.1) Complex: lodash at 36129 ops/secĬhrome (Mac OS X 10.9.1) Loops: ? at 98253 ops/secĬhrome (Mac OS X 10.9.1) Loops: Handlebars at 46144 ops/secĬhrome (Mac OS X 10.9.1) Loops: doT at 54053 ops/secĬhrome (Mac OS X 10.9.1) Loops: lodash at 41430 ops/secĬhrome (Mac OS X 10.9.1) Markup: ? at 113562 ops/secĬhrome (Mac OS X 10.9.1) Markup: HTMLbars at 66874 ops/secĬhrome (Mac OS X 10.9.1) Markup: Handlebars at 28774 ops/secĬhrome (Mac OS X 10.9.1) Markup: doT at 30032 ops/secĬhrome (Mac OS X 10.9.1) Markup: lodash at 27260 ops/secĬhrome (Mac OS X 10.9.1) Variables: ? at 112530 ops/secĬhrome (Mac OS X 10.9.1) Variables: HTMLbars at 55258 ops/secĬhrome (Mac OS X 10.9.1) Variables: Handlebars at 67007 ops/secĬhrome (Mac OS X 10.9.1) Variables: doT at 75786 ops/secĬhrome (Mac OS X 10.9.1) Variables: lodash at 56775 ops/secĬomplex: ? at 73807 ops/sec (1.45x faster than doT) Markup: ? at 118708 ops/sec (1.54x faster than HTMLbars) Loops: ? at 132643 ops/sec (4.98x faster than doT) Safari 7.0.1 (Mac OS X 10.9.1) Variables: lodash at 26922 ops/secĬomplex: ? at 112226 ops/sec (4.68x faster than doT) Safari 7.0.1 (Mac OS X 10.9.1) Variables: Handlebars at 28613 ops/sec Safari 7.0.1 (Mac OS X 10.9.1) Variables: HTMLbars at 86282 ops/sec Safari 7.0.1 (Mac OS X 10.9.1) Markup: Handlebars at 16625 ops/sec Safari 7.0.1 (Mac OS X 10.9.1) Markup: HTMLbars at 76993 ops/sec Safari 7.0.1 (Mac OS X 10.9.1) Loops: Handlebars at 23729 ops/sec Safari 7.0.1 (Mac OS X 10.9.1) Complex: Handlebars at 19631 ops/sec Variables: ? at 96360 ops/sec (1.62x faster than doT) Markup: ? at 60520 ops/sec (1.65x faster than HTMLbars) Loops: ? at 91616 ops/sec (2.18x faster than doT) ![]() It returns a function you can serialize and make available for client-side execution however you see fit. Use grunt-DOMly or gulp-DOMly to precompile your templates.Īlternatively, the Node module exports a function that takes template code and options. ![]() You cannot compile DOMly templates in the browser. Template precompilationĭOMly parses HTML to generate createElement statements, and as such, it only makes sense if precompiled. ![]() ![]() This is accomplished by passing the node to $, so you can use your own $ function instead of jQuery. If a handle name begins with $, such as $handle, a jQuery object will be stored as $handle and the Node itself will be stored as handle. call ( obj, templateData ) // For handle names that start with $, references to the jQuery object are available view. Var obj = // Render the template with obj as this and templateData as data template.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |