Closed rogi29 closed 6 years ago
I have already found a solution.
<template>
<require from="./module-a"/>
<div>
<module-a title="new title!"/>
</div>
</template>
from https://ferrugemjs.github.io/home-page/documentation.html
This is ferrugem, I wanted it purely with superviews.js. Thank you anyways, I already found a solution, and it is rewriting the code to allow custom directives, custom tags and even custom mods. I might release a repository soon with credit to the original of course.
I find it an issue, where I want to include multiple templates inside a parent template using an HTML like syntax to create modular components.
Is there a possibility to extend the
handler
function (the one on line 139), therefore allowing us to create custom tags like<include>
or<component>
that would be compiled to js functions? For example: