https://github.com/ioing/lath
A pure front-end container. Bring interactive experiences comparable to Native Apps.
https://github.com/ioing/lath
Last synced: about 1 year ago
JSON representation
A pure front-end container. Bring interactive experiences comparable to Native Apps.
- Host: GitHub
- URL: https://github.com/ioing/lath
- Owner: ioing
- License: mit
- Created: 2022-08-06T10:17:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-15T09:13:20.000Z (over 2 years ago)
- Last Synced: 2025-03-08T00:04:50.170Z (over 1 year ago)
- Language: TypeScript
- Size: 297 KB
- Stars: 136
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduce
A pure front-end container
Bring interactive experiences comparable to Native Apps.
https://lath.dev
# Install:
```bash
$ npm i lath --save
```
# Example
https://github.com/ioing/lath-vue-example
# Use
```html
I am FrameworksApplets
I am home
I am pageA
```
```ts
import { createApplication } from 'lath'
/**
* "home": moduleName
* "root": target element id
*/
createApplication({
applets: {
frameworks: {...}, // frameworks module config
home: {...} // normal module config
pageA: {...} // normal module config
pageC: {
config: {
source: {
src: '/c.html'
}
},
...
} // normal module config
}
}).then(( application ) => {
console.log(application)
})
```