These are chat archives for ractivejs/ractive

25th
May 2017
Joseph
@fskreuz
May 25 2017 00:39
Needs feedback ractivejs/ractivejs.github.io#53
Juan C. Andreu
@andreujuanc
May 25 2017 18:01
Guys, so, now isolated will be true by default right?
Joseph
@fskreuz
May 25 2017 18:02
iirc, yes
Juan C. Andreu
@andreujuanc
May 25 2017 18:02
cool
So data must be explicitly passed to it
I like it more
also more testable
For devs to think on components bit more
Joseph
@fskreuz
May 25 2017 18:04
To remain false globally, I think Ractive.defaults.isolated = false should do the trick.
Juan C. Andreu
@andreujuanc
May 25 2017 18:04
I wanted to review changelog for 9, and dannnng i'd need wine with this xD
When using easings, if it runs using js, would it be nice to have a warning saying that it's doing so?
From this line on CL: "easing functions that can't be run using CSS transitions will now cause the transition to be run as JS (#2152)"
Joseph
@fskreuz
May 25 2017 18:09
You can file an issue in github so it won't get lost in gitter :)
Juan C. Andreu
@andreujuanc
May 25 2017 18:09
Sure sure, but i was asking first if it was a good idea ? XD
After coffee I get so much hype xD
Joseph
@fskreuz
May 25 2017 18:10
Well, it's always a good idea to inform the dev what's going on.
it's just a matter of when it should log and how often
Juan C. Andreu
@andreujuanc
May 25 2017 18:11
Indeed
Juan C. Andreu
@andreujuanc
May 25 2017 18:24
Good it's here: Components are now isolated by default. You can change the global default by setting Ractive.defaults.isolated if you need the old behavior to be the default.
xP
Joseph
@fskreuz
May 25 2017 18:30
So flexibility. Much wow. :doge: :D
Chris Reeves
@evs-chris
May 25 2017 22:30
any opinions on allowing components processed by the bin to run the CSS as a template with the data pulled from the config?
with the goal being to components to provide default styles that are reasonably easy to override without having to actually edit the component
that's the last weird part of distributing components for me
Joseph
@fskreuz
May 25 2017 22:46
I was under the impression that this was already possible, interpolation of data and the CSS string.
Chris Reeves
@evs-chris
May 25 2017 22:59
I don't think it is, but I confess I haven't looked at the CSS code very much
Joseph
@fskreuz
May 25 2017 22:59
I may be wrong tho.
Chris Reeves
@evs-chris
May 25 2017 22:59
It'd be great to get per component runtime interpolation
Joseph
@fskreuz
May 25 2017 23:00
ahh, now I remember
I was looking into the rvc source code when I found this line in the embedded rcu: https://github.com/ractivejs/rcu/blob/master/src/parse.js#L16
Chris Reeves
@evs-chris
May 25 2017 23:01
that's
considerably more difficult though
Martin Kolárik
@MartinKolarik
May 25 2017 23:01
that applies to contents of the template
Chris Reeves
@evs-chris
May 25 2017 23:02
yeah, I thought that was actually the default - no mustaches in scripts and styles
Joseph
@fskreuz
May 25 2017 23:03
oh, so it's just a parser feature and not really utilized by the runtime?
Martin Kolárik
@MartinKolarik
May 25 2017 23:04
as a user you can enable it if you want, but it's off by default
Joseph
@fskreuz
May 25 2017 23:04
ahh
Martin Kolárik
@MartinKolarik
May 25 2017 23:05
and yes it's only for parser