https://github.com/yisar/vemix
Simple Vue SSR framework
https://github.com/yisar/vemix
Last synced: 9 months ago
JSON representation
Simple Vue SSR framework
- Host: GitHub
- URL: https://github.com/yisar/vemix
- Owner: yisar
- License: mit
- Created: 2022-08-05T13:26:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T14:30:49.000Z (over 3 years ago)
- Last Synced: 2025-03-28T23:22:24.780Z (10 months ago)
- Language: JavaScript
- Size: 321 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# venti
Simple Vue SSR framework.
### Run
```shell
yarn dev
```
### Usage
```vue
{{ msg }}
import { useLoaderData } from 'venti'
import { computed } from 'vue'
export function loader() {
return {
msg: 'Hello world!',
}
}
export default {
setup() {
const data = useLoaderData()
const msg = computed(() => data.value.msg)
return {
msg,
}
},
}
```