0.0.1 • Published 3 years ago
tinway v0.0.1
tinway JavaScript
A JavaScript library for building user interfaces
install
npm
npm i tinway
yarn
yarn add tinway
download JavaScript
https://tinway.github.io/tinway/tinway.js
add script to html
<script type="module" src="app.js"></script>
edit the file app.js
import {run,getData as get,setData as set} from './tinway.js'
or
import {run,getData as get,setData as set} from 'tinway'
Example
import {run,getData as get,setData as set} from 'tinway'
let container = {
module: {get,set},
attributes: {
class:'container',
style:'background: #f5f5f5'
},
dataName:'index',
setData:{title:'Page index'},
view:'view/index',
js:'js/index'
}
run(container)