These are chat archives for ractivejs/ractive

7th
Aug 2018
kouts
@kouts
Aug 07 2018 15:52
I'm using ractive cli to parse ractive component files and it works great. Is there any way to achieve the same with partials?
I'm doing something like:
<script type="text/ractive" id="my_partial">
Test
</script>
<script>
    Object.assign(Ractive.partials, $PARTIALS);
</script>
And while this works, the template doesn't get parsed
It remains a plain string with a lot of \r\n\t\t\t\t inside it
Chris Reeves
@evs-chris
Aug 07 2018 16:59
there's a parse command, but the specifics of what it does elude me at the moment
I'll check when I get back to a real machine
you can also use template tags with an id to avoid the slightly chattier script version too
in fact, that may be the answer - try with template tags instead
kouts
@kouts
Aug 07 2018 17:29
Ok I tried that and I got the less chattier version (i.e without the \r\n\t\t\t\t) but the contents are not parsed
thanks @evs-chris, if you find anything later just throw it here
Chris Reeves
@evs-chris
Aug 07 2018 18:35
it turns out that there's a bug in plain $PARTIALS handling
should be fixed in edge and v0.10-dev as soon as travis does travis
should also be fixed in the playground too, as soon as travis travises there
kouts
@kouts
Aug 07 2018 23:09
nice!