Re : Mustache Template for CSS
Doesn't it work there? I think you can add <style> tag inside mustache template (like any other tag) and do what ever you like with it. You can append mustache template in <head> section if...
View ArticleRe : Is it recommended use can Mustache instead of can EJS?
Mustache templates encourage much cleaner separation of concerns.
View ArticleRe : Anyone using something other than jQuery and Zepto?
I think that is right decision.
View ArticleRe : Mustache Template for CSS
Thanks Alex,I did not think about putting a whole <html> document inside a template.Will check and test performance.
View ArticleRe : Mustache Template for CSS
You don't need to put a whole document's <html> in template but you can just insert (append) template that contains <style> tag into document's <head>.var myStyle = 'body:...
View ArticleRe : Mustache Template for CSS
I will also try to reference the whole stylesheet with an id.<style type="text/css" id="skin1">
View ArticleIntegration of CanJS with JQuery data table plugins like DataTables
Does CanJS work with JQuery data table plugins like DataTables, JQGrid or any other data grid plugins?I saw an example of KnockoutJS being used with DataTables for automatic updates of the data table...
View ArticleRe : Integration of CanJS with JQuery data table plugins like DataTables
It is not hard to implement such things with can.js in many ways such generic jquery plugins were developed because it is not trivial to make everything work smoothly using just jquery. For certain...
View ArticleRe : can.Compute is called too many times
This is very likely a bug. This shows the right behavior:http://jsfiddle.net/xKc3H/297/I'm not sure why there is a difference.
View ArticleRe : can.Compute is called too many times
The intention of the code is is to translate comp value (each time it is value is changed based on chanages of attr1 and attr2 values) to some scope attribute how can I do this?
View ArticleRe : can.Compute is called too many times
Can you elaborate a bit more on what you mean. I'm not clear on what you are asking. Sent from my iPhoneOn Jan 5, 2014, at 11:12 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : Anyone using something other than jQuery and Zepto?
Are there any specific reasons to remove support for JavaScript libraries other than JQuery and Zepto? I thought this interoperability with multiple JavaScript libraries was one of the listed reasons...
View ArticleRe : Confused on AMD support
A tip: If you use a package manager, for example Bower, you do not have to go around and fetch code from different download pages. For canjs you can easily do 'bower install canjs', and you will get...
View ArticleRe : can.Compute is called too many times
Well I use this code: comp: can.compute(function(){ var attr1 = this.attr('attr1'), attr2 = this.attr('attr2') console.log('comp attr1 attr2', attr1, attr2)...
View ArticleBest way to deal with href links in a "{can.route} attribute" setup?
By listening for attribute changes instead of "route" events, regular hrefs are not automatically picked up as routes. What would be the best practice to correct this?For a link like:<a...
View ArticleRe : Anyone using something other than jQuery and Zepto?
Supporting Dojo and YUI slows us down. We can have a standalone version of canjs. But, using the zepto version with dojo would be very similar in size to that. Sent from my iPhoneOn Jan 6, 2014, at...
View ArticleRe : Anyone using something other than jQuery and Zepto?
@netizen obviously supporting many libraries requires more work, and if nobody (or little) actually uses it is a waste of time for authors. Nothing personal just natural selection.
View ArticleRe : Best way to deal with href links in a "{can.route} attribute" setup?
they should be automatically picked up already:https://github.com/bitovi/canjs/blob/master/route/pushstate/pushstate.js#L45
View ArticleRe : Best way to deal with href links in a "{can.route} attribute" setup?
Ah, now I see why it's not working for me.. https://github.com/bitovi/canjs/blob/master/route/pushstate/pushstate.js#L94 is returning {} on my link. I had this issue in my example above, which is why I...
View ArticleRe : Best way to deal with href links in a "{can.route} attribute" setup?
https://github.com/bitovi/canjs/pull/644
View Article