<x-button>WASSUP</x-button>
<template>
— blueprintx-
) — toolbelt{{ mustache }}
handlebars
underscore.js
Jade
EJS
Sencha (ExtJS)
HTML Templates<template id="awesome">
<img src="">
<div class="title"></div>
</template>
var t = document .querySelector('#awesome')
t.content .querySelector('img') .src = 'http://...'
document.body.appendChild( t.content.cloneNode(true))
@host
at-rule<div id="host">
<h1>Normal DOM</h1>
</div>
var shadow = document .querySelector('#host') .createShadowRoot()
shadow.innerHTML = '<div>Shadow DOM</div>'
<style>
#host::x-pseudo {
color: blue
}
</style>
<div id="host"></div>
<script>
document .querySelector('#host') .createShadowRoot() .innerHTML = '<div pseudo="x-pseudo">\ </div>'
</script>
x-tag {
color: var(tag-color);
font: var(tag-font)}
CSS Custom Properties#host {
var-tag-color: blue;
var-tag-font: sans-serif}
<div id="host">
<h1>Normal DOM</h1>
<div>other content</div>
</div>
<style>
h1, h2 {font-size: 25pt}
</style>
<content select="h1"></content>
<h2>sub header<h2>
<h2content select="*"></content>
<element name="x-tag">
<template>
<content></content>
</template>
</element>
<link rel="component" href="x-tag.html">
<x-tag>
...
</x-tag>
<element name="x-tag" constructor="Tag">
<template></template>
<script>Tag.prototype = {}
</script></element>
<link rel="component" href="x-tag.html">
<script>
var t = new Tag()
t.addEventListener('click', function(){ this.method() })
document.body .appendChild(tabs)
</script>
<table>
position: absolute
float: left
clear: both
flex
their sizedisplay: -ms-flexbox
display: flex
display: inline-flex
flex-flow: <flex-direction> || <flex-wrap>
flex: <flex-grow> <flex-shrink> || <flex-basis>
order: 2
justify-content
align-items
& align-self
align-content
display: grid;
grid-definition-columns: 200px 1fr 200px;
grid-definition-rows: auto;
CSS Grid Layoutgrid-row: <position> <span>;
grid-column: 1 2;
.grid {
display: grid;
grid-template:"head head"
"nav main"
"foot foot"
}
.grid > a {
grid-area: "nav";
}