Enhance gives you the ability to write HTML pages comprised of custom elements authored as single file components that get expanded on demand.
Single file components are rendered on the server where Enhance does the tedious work of expanding custom elements as well as setting up your document for progressively enhancing components for dynamic render in the browser.
Styles and scripts
Enhance processes your style tags moving them to the head of the document and also moves any script tags in your component to the bottom of the document. This is done via transforms which are extension points you can add for your project if need be.
Standards based reuse
Repeated markup authored as custom elements enables reuse but Enhance also adds special handling of
<slot> elements following the Web Component standard. This powerful feature enables you to reuse layouts and components by substituting their internals while maintaining core functionality.