From a3a9c4876cc264958ca8ac0fa850ef7452c00f7c Mon Sep 17 00:00:00 2001 From: Kenneth Larsen Date: Fri, 2 Nov 2018 08:47:21 +0100 Subject: [PATCH 1/3] Added section on dynamic tag names --- source/blog/2018-11-02-the-ember-times-issue-71.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/blog/2018-11-02-the-ember-times-issue-71.md b/source/blog/2018-11-02-the-ember-times-issue-71.md index 1a56f33339..903814fa04 100644 --- a/source/blog/2018-11-02-the-ember-times-issue-71.md +++ b/source/blog/2018-11-02-the-ember-times-issue-71.md @@ -32,8 +32,18 @@ If you're feeling up to the task to help tree-shaking land in Ember and you're c --- -## [SECTION TITLE](#section-url) +## [A New and Dynamic RFC](https://github.com/cibernox/rfcs/blob/dynamic-tag-names/text/0000-dynamic-tag-names.md) +[@cibernox](https://github.com/cibernox) has submitted a new RFC suggesting **dynamic tag names in glimmer templates**. In the transition from using inner-html semantics to using outer-html semantics in components there's one feature that has been lost: Being able to dynamically define the tag name of components. + +To solve this issue the RFC proposes a new `element` helper that takes a tag name and generates a contextual component that, when invoked, renders the selected element. Like this: + +``` +{{#let (element "li") as |Tag|}} + ... +{{/let}} +``` +You can try out [a working proof of concept on Github](https://github.com/tildeio/ember-element-helper) and you can read all the details about the [RFC in the proposal](https://github.com/cibernox/rfcs/blob/dynamic-tag-names/text/0000-dynamic-tag-names.md). --- From eb5f5c26f6ce0687eea97d07f996eb80f3a4cf4b Mon Sep 17 00:00:00 2001 From: Kenneth Larsen Date: Fri, 2 Nov 2018 08:49:27 +0100 Subject: [PATCH 2/3] Added name and intro --- source/blog/2018-11-02-the-ember-times-issue-71.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blog/2018-11-02-the-ember-times-issue-71.md b/source/blog/2018-11-02-the-ember-times-issue-71.md index 903814fa04..4595cf7b55 100644 --- a/source/blog/2018-11-02-the-ember-times-issue-71.md +++ b/source/blog/2018-11-02-the-ember-times-issue-71.md @@ -1,6 +1,6 @@ --- title: The Ember Times - Issue No. 71 -author: Chris Ng, Jessica Jordan, the crowd +author: Chris Ng, Jessica Jordan, Kenneth Larsen, the crowd tags: Recent Posts, Newsletter, Ember.js Times, Ember Times, 2018 alias : "blog/2018/11/02-the-ember-times-issue-71.html" responsive: true @@ -8,7 +8,7 @@ responsive: true Emberistas! 🐹 -This week your **help is needed** to bring **tree-shaking** 🌳 to Ember apps, +This week your **help is needed** to bring **tree-shaking** 🌳 to Ember apps, an new RFC on dynamic tags is ready for your comments --- @@ -119,4 +119,4 @@ That's another wrap! ✨ Be kind, -Chris Ng, Jessica Jordan, the crowd and the Learning Team +Chris Ng, Jessica Jordan, Kenneth Larsen, the crowd and the Learning Team From a91fa3b1cc54c5dff772a961a1f07d00cec11a3e Mon Sep 17 00:00:00 2001 From: Kenneth Larsen Date: Fri, 2 Nov 2018 12:50:12 +0100 Subject: [PATCH 3/3] Update 2018-11-02-the-ember-times-issue-71.md --- source/blog/2018-11-02-the-ember-times-issue-71.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blog/2018-11-02-the-ember-times-issue-71.md b/source/blog/2018-11-02-the-ember-times-issue-71.md index 4595cf7b55..9b0f15c5a9 100644 --- a/source/blog/2018-11-02-the-ember-times-issue-71.md +++ b/source/blog/2018-11-02-the-ember-times-issue-71.md @@ -37,7 +37,7 @@ If you're feeling up to the task to help tree-shaking land in Ember and you're c To solve this issue the RFC proposes a new `element` helper that takes a tag name and generates a contextual component that, when invoked, renders the selected element. Like this: -``` +```handlebars {{#let (element "li") as |Tag|}} ... {{/let}}