templating icon indicating copy to clipboard operation
templating copied to clipboard

feat(templating) add ability to compose templates that are defined in the same html that composes them

Open dkent600 opened this issue 9 years ago • 3 comments

In reference this associated stackoverflow question

I would like to propose that aurelia have the ability to compose templates that are defined in the same html that composes them. This would be in contrast to the current restriction (correct me if I'm wrong) that composed templates must be defined in their own separate html file.

The proposed html could look like this, though I note there are plenty of other potential ways to do this:

<template>
    <template name="myTemplate">
        ${a-property-on-containers-binding-context}
    </template>

    <compose view="myTemplate"/>
</template>

dkent600 avatar Oct 03 '16 17:10 dkent600

It sounds like a reasonable request.

EisenbergEffect avatar Oct 03 '16 22:10 EisenbergEffect

Stale since 2016

Alexander-Taran avatar Mar 09 '18 22:03 Alexander-Taran

Let's keep this open for now. It's a low priority but might be something we could do in vNext.

EisenbergEffect avatar Mar 09 '18 22:03 EisenbergEffect