Usage
<a is="h-embed" href="$uri">$label</a>will be transformed to
<a is="h-embed" href="$uri" style="display: none;">$label</a>
<div class="h-embed">
$transclusion
</div>Options
via DOM attributes
container: tag name to use (defaults to"div")fragmentTODOcors="true"activates CORS supportpollTODO
Alternatives
h-transclude is inspired by h-include, which in turn is based on HInclude.
pjax has similar capabilities, though it's typically used in a different context.
Contributing
- ensure Node is installed
npm installdownloads dependenciesnpm run compileperforms a one-time compilation, generatingdist/bundle.jsnpm startautomatically recompiles while monitoring code changesnpm testchecks code for stylistic consistency
note that the basic infrastructure is provided by ES6 seed