Skip to content

0.2.0: Initial release

Latest
Compare
Choose a tag to compare
@robhrt7 robhrt7 released this 30 Aug 12:19

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.