Skip to content

Releases: sourcejs/sourcejs-shadow-dom

0.2.0: Initial release

30 Aug 12:19
Compare
Choose a tag to compare

Basic support for Shadow DOM preparation in SourceJS specs .source_example sections.

Note: Currently optimized for Chrome browser only.

How it Works

The plugin consists out of midlleware (server-side) and client-side initialization plugin.

Using cheerio on server-side, module modifies .source_example sections, moving their content into template with linked CSS from the page. After processing all examples, server-side module removes global linked CSS and passes prepared templates on client-side, where Shadow DOM containers are created.