NUTS
View compiler for web apps. Work in progress
Install
npm i --save nuts
Quick start
Describe your view (myview.nuts.html
):
Count: {{: count }} +1 Odd Even
Compile it (will create myview.nuts.js
):
$ npx nuts myview.nuts.html
Create your component controller mycomponent.js
:
// import view const render =
Render the component in your app:
const elem = document
Now your app should look like this:
Count: 0 +1 Odd
and count will increment 1 every click on button