PolymerLabs/template-instantiation

Name: template-instantiation

Owner: PolymerLabs

Description: null

Created: 2018-01-05 22:36:32.0

Updated: 2018-03-24 16:30:06.0

Pushed: 2018-03-18 04:50:31.0

Homepage: null

Size: 105

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Template Instantiation Strawman Prollyfill

Template Instantiation is a new web platform feature with ongoing, developing proposals coming out of a few corners of the ecosystem.

The most developed proposal so far comes from Ryosuke Niwa at Apple and can be found here.

This change proposes a Template Instantiation prollyfill implementation based on Ryosuke Niwa's proposal, and adapted with idioms and features found in the Polymer Team's own lit-html.

Concepts and Domain

Template Instantiation is meant to offer a standard API for enabling some level of dynamism in otherwise static HTML templates. There are several relevant use cases outlined in the Apple proposal.

Conceptually, this implementation consists of many of the same constructs. However, there are a few notable differences.

Compared to the Apple proposal, the implementation here is lacking:

Areas where this implementation diverges from Apple's proposal include:

Features included in this implementation that are not covered by Apple's proposal:

Template string parsing
TemplateRule
TemplatePart
TemplateDefinition
TemplateAssembly
TemplateProcessor
TemplateInstance
HTMLTemplateElement

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.