These are chat archives for ractivejs/ractive

17th
Feb 2018
Joseph
@fskreuz
Feb 17 2018 14:49

Anyone want to take a shot at ractivejs/template-spec#4 ? If so, here are some resources

I would imagine this is would just be parsing a sample of each known mustache, documenting the output, ticking off types found, and looking for the ones missing.

No extensive Ractive experience required, just the ability to test code, write markdown and patience... times 70 something types of nodes. :grin:

Chris Reeves
@evs-chris
Feb 17 2018 14:53
Nah, only like 50 types of nodes, most of which are discarded during expression refinement 😁
Chris Reeves
@evs-chris
Feb 17 2018 17:39
There's still one change I'd like to introduce to the template - a static attribute map back at a on element nodes. That would allow for faster rendering of non-dynamic bits of template. The a map originally had dynamic stuff mixed in too, which, being a map, made certain things weird.
kouts
@kouts
Feb 17 2018 18:19
Quick question: Is there anyway to tell which methods are defined inside on: { ... } in an Ractive instance?
Chris Reeves
@evs-chris
Feb 17 2018 19:23
Not a public API, no.
Chris Reeves
@evs-chris
Feb 17 2018 19:29
There's a private API for component constructors, but I'll have to poke at instances to see if there's anything exposed. What are you looking to do?
kouts
@kouts
Feb 17 2018 19:55
I have a method which acts like a "guard" for existing methods by showing a confirm dialog. So when a user clicks "Ok" then the "final" method is called.
But no worries, it's just that I was looking for it the other day so I thought I'd ask.