Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Jito
What is Jito?
Jito is web component tools with Data Binding, Template Engine and Virtual DOM.
You can experience single page application development with just a web browser.
She support JavaScript and TypeScript for Deno.
Examples
Document
Import
Jito use ES Modules.
From a local file
<script type="module">
import { ... } from './jito.js'
...
</script>
From CDN
From jsDelivr.
<script type="module">
import { ... } from 'https://cdn.jsdelivr.net/gh/ittedev/jito@1.0.2/jito.js'
...
</script>
For Deno
import { ... } from 'https://deno.land/x/jito@1.0.2/mod.ts'
For Node.js
Install:
npm i jito
Import:
import { ... } from 'jito'
First Example
Please save the following code as example.html
and try opening it in your web browser. A counter that counts up every second is displayed.
<!DOCTYPE html>
<meta charset="UTF-8">
<body></body>
<script type="module">
import { watch, mount } from './jito.js'
let state = watch({
count: 1
})
setInterval(() => { state.count++ }, 1000)
mount(document.body, `Counter: {{ count }}`, [state])
</script>