aurelia / templating

An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.
MIT License
116 stars 104 forks source link

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

Open dkent600 opened 7 years ago

dkent600 commented 7 years ago

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>
EisenbergEffect commented 7 years ago

It sounds like a reasonable request.

Alexander-Taran commented 6 years ago

Stale since 2016

EisenbergEffect commented 6 years ago

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