Skip to content

Get nested partial by variable path #7

@Jakob-Maudience

Description

@Jakob-Maudience

Would it be possible to get a partial via a variable like so?

Main file -

<body>
    <partial src="child.html" content-partial="content.html" ></partial>
</body>

child.html

<div class="child-component">
    <partial src="@@content-partial" ><partial>
</div>

content.html

<p>Lorem ipsum...<p>
<p>Dolor sit amet...<p>

This functionality would be really helpful when making reusable templates with nested partials!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions