These are chat archives for ractivejs/ractive

30th
Dec 2018
kouts
@kouts
Dec 30 2018 14:20
Hi all, I have published a searchable dropdown component, https://kouts.github.io/ractive-droplist/demo/
kouts
@kouts
Dec 30 2018 14:29
Nice fact about the demo / documentation for all my plugins; Since Ractive is used for page rendering I have created a decorator that parses HTML comments so that their contents can then be appended to the DOM after Ractive finishes rendering. This way I can break out of Ractive's parser and have Ractive code displayed as code.
Chris Reeves
@evs-chris
Dec 30 2018 15:33
nice!
are you filtering on input or key events?
kouts
@kouts
Dec 30 2018 16:56
I'm filtering on on-keydown
Out of curiosity, is there any other way to have the parser of Ractive "skip" sections of the template?
Chris Reeves
@evs-chris
Dec 30 2018 17:22
ah, there's this really crappy behavior on Android with the google keyboard where-in you get no key events unless you're in a password field
so you have to use input for the simple cases and compose events (or something like that) for more complex stuff
as far as skipping template, there are a few things that make ractive skip
one is comments, another is <script>
you can also parse the template in text only mode, which will ignore any tags and process everything in a more traditional templating manner, which is really handy for generating ractive templates with ractive