Nested REST Resources
Let's say, I am editing posts and their comments. The REST method to get the comments of post is"GET /posts/{postid}/comments"There will never be a findAll for comments. I will get them from the parent...
View ArticleRe : Nested REST Resources
Comment = can.Model.extend({ findAll : "GET /posts/{postid}/comments"},{})Comment.findAll({postid: 5})
View ArticleMustache templates not render properly. Should I do something when I update...
I use canJS 2.0.7 now.It works well.But when I try to update to 2.1.0, mustache templates can not show data properly.It render__!!__or@@!!@@But It was working well in 2.0.7.Should I do something if I...
View ArticleRe : Avoding cross-domain issues with templates on CDN
What if not loading them from a cdn isn't an option? Is there some way to define a base url?
View ArticleRe : Avoding cross-domain issues with templates on CDN
Load compiled templates from a CDN.You can't make cross domain ajax requests in all browsers.
View ArticleRe : Mustache templates not render properly. Should I do something when I...
There was a bug if you were using can.view.mustache("TEMPLATE CONTENT") where it would return a string instead of fragment renderer. Those are fixed in 2.1. But if your code was relying on the bug, it...
View Articlesteal build error => java.lang.OutOfMemoryError: Java heap space
HiI'm getting a java out of memory error while trying to use steal to build our app. Does anyone know how to increase the memory allotted to java/steal? The OS is Linux. I tried modifying the steal/js...
View ArticleRe : Mustache templates not render properly. Should I do something when I...
I am using views likes below:$('#my-div').html(can.view('views_item_mustache', this.data));And I use https://github.com/daffl/can-compile as well.It compile my mustches to one javascript file likes...
View ArticleRe : Mustache templates not render properly. Should I do something when I...
I think can-compile is broken for 2.1. Maybe there is a newer version. It should be can.view.preloadStringRenderer( .... )
View ArticleList view doesnt refresh after added a data
Hello everyone,since 3 days im fighting with CanJs to update my list of datas after added a data.basically i have 3 moustache views.one for app view with inside 2 other views (list and create)when i...
View ArticleRe : List view doesnt refresh after added a data
I can't read that. Can you create a fiddle?
View ArticleRe : List view doesnt refresh after added a data
does coffee script put a var before things like:Client = can.Model.extendIf yes ... "{Client} created" won't work.
View ArticleRe : List view doesnt refresh after added a data
btwfindAll : 'GET /api/clients' findOne : 'GET /api/clients/{id}' create : 'POST /api/clients' update : 'PUT /api/clients/{id}' destroy : 'DELETE /api/clients/{id}'can be replaced with one...
View ArticleRe : List view doesnt refresh after added a data
Hi Justin,thanks for your fast reply,i have deployed on jsfiddle, hope can be usefull.http://jsfiddle.net/c7HM8/2/
View ArticleRe : List view doesnt refresh after added a data
Woaww great thanks,im new on CanJS and looks awesome,imuseing with laravel and the integration is really nice
View ArticleRe : Mustache templates not render properly. Should I do something when I...
Thanks a lot Justin,I will seek the can-compile.
View ArticleRe : Missing doc.bat in documentjs
I am sorry to say, but the documentation (ironically, on a documentation tool) is atrocious. As o.koller states, there is no doc.bat, and the documentation (even the one you linked) specifically states...
View ArticleRe : Mustache templates not render properly. Should I do something when I...
Is there any way else to preload renderers? It's not clear if this is something that can be done with steal or another tool.
View ArticleRe : List view doesnt refresh after added a data
Hi Guys, have you find something that can help me?im still digging ...cheers,Michael
View Article