Template 7 partials in Components

I am implementing a treeview and will be fetching a json object representation of the tree from the server. Before I dive into writing a bunch of code to parse the object and generate the treeview markup, I noticed template7 partials support recursion. How do I implement the template partial in a component? Is there an example of this? Do I just register the partial inside the script block?

If you use it with webpack, then it support local and external partials, check this readme, it has examples https://github.com/framework7io/framework7-component-loader

Otherwise, you need to register them somewhere globally