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.
- Host: GitHub
- URL: https://github.com/luwes/super-template
- Owner: luwes
- Created: 2023-02-20T17:26:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T00:59:29.000Z (over 3 years ago)
- Last Synced: 2025-06-10T12:56:22.187Z (about 1 year ago)
- Topics: html, template, template-engine
- Language: JavaScript
- Homepage: https://supertemplate.vercel.app/examples/
- Size: 43.9 KB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)