An open API service indexing awesome lists of open source software.

https://github.com/luwes/super-template

πŸ¦Έβ€β™‚οΈ Build-less template inheritance in the browser. Handy for example or demo pages.
https://github.com/luwes/super-template

html template template-engine

Last synced: about 1 year ago
JSON representation

πŸ¦Έβ€β™‚οΈ Build-less template inheritance in the browser. Handy for example or demo pages.

Awesome Lists containing this project

README

          

# Super Template

Build-less template inheritance in the browser. Handy for example or demo pages.

## Usage ([Codesandbox](https://codesandbox.io/s/super-template-8n3ci9]))

- `` is required in the child template because it's not
possible to dynamically change the doctype of a loaded HTML file.
- The `link[rel=preload]` ensures the base html files are fetched in parallel
with the script file. It's optional but recommended for faster page loads.

### layout.html

```html


header

footer

```

### index.html

```html

Super Template Demo


{{super}}


Super Template


Build-less template inheritance in the browser. Handy for example or demo pages.


```

## Related

- [Template Extensions](https://github.com/luwes/template-extensions)