I have a marko (we use version 4.7.4
) component (component.js and index.marko file) whose markup I'd like to split across multiple files. I don't want to split them out into different components and I want them to access the same component definition.
I tried using <include('path/to/template.marko') />
which did include the markup but the component functions where not accessible from inside this template.
Something like component.myFunction()
didn't work.
Am I doing something wrong here? The goal is to simply split the markup across multiple files but using one component.