2.0.1 • Published 7 years ago
sweet-render v2.0.1
Sweet Render
A build-your-own-templating-engine sandbox
How it works
- Choose an input format (String, array, json)
- Choose an output format (HTML, React)
- Invent your own syntax, or use a default.
- Automagically render it to the page.
Table of contents:
General bragging
Lightweight
This package has no production dependencies, and no excess bloat.
Gzipped, it comes to 5kb total.
Modern
Utilizes es6+ if you do, but works fine in older javascript.
Can be used as an alternative to React's JSX allowing you to invent your own syntax and use that instead.
Elegant
Write HTML or React as if you were having a normal English conversation.
h1| Hello ${name_variable},
ul|
li|
a href="http://aaroncoding.com"| Click me