I am working on a project and we are using underscore JS for thermoplating. Is there a way to determine if the template's rendering is finished, then I can say a function call again?
This project includes jQuery, but does not include Backbone.js, if your answer helps.
Thank you! Mike
Example from the document: Then you can simply call the next function call after rendering call: _ template returns the actual evaluation template. That function returns results as string. Therefore whenever the function returns, it is not asynchronous, it is rendered, it is not asynchronous.
var compiled = _.template ("hello:
var compiled = _.template (" Hello: & lt;% = name% & gt; "); Var result = compiled ({name: 'moe'}); SomeOtherFunction ();
No comments:
Post a Comment