These are chat archives for canjs/canjs

8th
Jul 2015
Alexis Abril
@alexisabril
Jul 08 2015 07:00
@opolyo01 Yep, you’d want to use it inside a template. In one component’s template it’s common to use other components.
espretto
@espretto
Jul 08 2015 13:03
somebody knows how to tell when canjs has rendered everything? i'd like to embed my app in a server-side phantom instance to serve indexable content. i chose amd over stealjs.
David Luecke
@daffl
Jul 08 2015 15:05
CanJS renders synchronously so you just need to keep track of all the asynchronous loading you are doing.
2.3.0-pre also supports server side rendering now using https://github.com/canjs/can-ssr
@espretto
dylanrtt
@dylanrtt
Jul 08 2015 16:57
can.param converts nested objects to bracket syntax like country[name] but my backend expects them to be like country.name in the query string. Is there an easy way to do that so it applies to all requests? should I just overwrite it?
Chris Gomez
@akagomez
Jul 08 2015 17:06
@dylanrtt Maybe you can extend can.route.param: https://github.com/bitovi/canjs/blob/master/route/route.js#L203
It’ll create the bracket based nested objects, and you can replace them using a regex afterwards.
dylanrtt
@dylanrtt
Jul 08 2015 17:13
well I'm using the util which I guess is jquery, not the route version, but that should work. thanks!
James Atherton
@James0x57
Jul 08 2015 17:23
This message was deleted