These are chat archives for canjs/canjs

23rd
Aug 2016
Gregg Roemhildt
@roemhildtg
Aug 23 2016 19:21
Hello. How can I register partial templates that are imported via steal?
Thomas Sieverding
@Bajix
Aug 23 2016 19:22
I’d like to say <can-import “foo/bar.stache!”/> + {{>foo/bar}}
I’ve had some issues w/ partials in cordova though
In a lot of ways, it’s better to simply never use partials and always build components
Gregg Roemhildt
@roemhildtg
Aug 23 2016 19:23
I was trying to use
import template from './templates/list.stache!';
can.view.registerView('list', template);
Thomas Sieverding
@Bajix
Aug 23 2016 19:24
Components > partials
Gregg Roemhildt
@roemhildtg
Aug 23 2016 19:24
I agree, components are better. But in my scenario, I have a list, and if I use a partial, I can easily override that partial in certain instances
Thomas Sieverding
@Bajix
Aug 23 2016 19:25
Even for something like that I’d advocate for using the content tag + components
I’ve done it both ways
Exclusively using components is the way to go IMO
Gregg Roemhildt
@roemhildtg
Aug 23 2016 19:27
Okay, I'll rethink my strategy a bit
Thomas Sieverding
@Bajix
Aug 23 2016 19:27
You’ll find other advantages very quickly
Gregg Roemhildt
@roemhildtg
Aug 23 2016 19:32
Is it possible to have relative imports using {{> ./list.stache }}?
As in relative to the current template?
qantourisc
@qantourisc
Aug 23 2016 19:33
When model.save() fails because it called error() calling save again has no result. Did I miss anything ?
qantourisc
@qantourisc
Aug 23 2016 19:45
Found it, I was throwing inside the error handeling, results in unexpected behaviour