Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contentBlock inside of Template.dynamic #4756

Closed
maxnowack opened this issue Jul 15, 2015 · 3 comments
Closed

contentBlock inside of Template.dynamic #4756

maxnowack opened this issue Jul 15, 2015 · 3 comments

Comments

@maxnowack
Copy link
Contributor

It would be cool if Template.contentBlock can be used with Template.dynamic
Maybe some code can better explain what I mean:

{{#Template.dynamic template="Test"}}
  Dynamic
{{/Template.dynamic}}
<template name="Test">
  <div>
    Content from:
    {{> Template.contentBlock}}
  </div>
</template>
@glasser
Copy link
Contributor

glasser commented Jul 21, 2015

Thanks for the feature request! We welcome discussions about how to make Meteor better. If you haven't yet, check out our wiki page about feature requests on GitHub.

@zimme
Copy link
Contributor

zimme commented Sep 25, 2015

Nice, with this iron:router's layout thing can be re-implemented with Template.dynamic instead if it's own dynamic template thing =)

@dotnetwise
Copy link

why not

{{#dynamic name=xxx}}
abc
{{/dynamic}}

as opposite to longer uglier Template.dynamic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants