Is there any way to define partials in a single file component(loading with rvc/requre) such that they're available to all other components? If so, how do I look these partials up?
I've made
svapreddy/ractive-widgets-virtual-scroll compatible with ractive latest and it takes a formatter partial to layout each block of scroll. I'd like to define the formatter partial within the component that uses the ractive-widgets-vscroll component but the vscroll component doesn't find it. The way it looks up partials is with:
partials: {
formatter: function(parser) {
return parser.fromId(this.get('formatter'));
}
}
but it never finds any partial. I'm currently working around this with a really ugly hack where I just reference my app's ractive instance as a global and pulling it straight out of ractive.partials within the vscroll component but I'd like to fix this if possible because even with this method, I can't define partials within components that others can see, I have to define them in my app's main template.