- build components
- use State management
- use SSR
- it's isomorphic
- progressive usage
- simple + performant + small
- no dependencies
npm install radbod
- you have a HTML template
<html>...<div>hello</div>...
- add your ES2015 templating syntax
<html>...<div>hello ${messages.greeting[3]}</div>...
- create a html_loader
- run the server `node server/run.js "path/to/html_loader"
- see page via http://localhost:8080/
The html_loader defines how you load the html regarding to the requested route. An Example behavior for a html_loader:
expects a Route:
http://localhost:8080/user/123
load:
path/to/project/layout/base.html
path/to/project/sites/user/userprofile.html
path/to/project/sites/user/userprofile.css -->inlined
path/to/project/sites/user/userprofile.js -->inlined
returns:
{ data: "HTML FULL PAGE CONTENT" }