Skip to content

Question about nested partial module loading #80

@hsnoil

Description

@hsnoil

Currently, to load up partials you need to do:

import { register } from "./dist/module/mikado.js"
import tpl_header from "./tpl/header.es6.js";

register(tpl_header);
<main>
<section include="header"></section>
</main>

Is there any reason why the template compiler can't have an option to auto import and register all includes that show up in the template? Otherwise you have to manually import all nested partials. To be clear I mean nested template files, not tags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions