- Notifications
You must be signed in to change notification settings - Fork0
Python and Django client for vue-ssr-service
License
NotificationsYou must be signed in to change notification settings
krmax44/vue-ssr-python
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Client forvue-ssr-service. See its documentation for aquick start guide.
Warning
This project is in a proof-of-concept state.
fromvue_ssrimportServerRendererrenderer=ServerRenderer()renderer.render("myComponent",props={"name":"friend"})# "<p>Hello, friend!</p>"
Works well in conjunction withdjango-vite. Add it to your installed apps:
INSTALLED_APPS= ["vue_ssr", ...]
Then, you can simply use the provided template tag:
{%loadvue_ssr%}<user-greeting>{%render_vue"userGreeting"name=request.user.username%}</user-greeting>
Or pass a dict with props:
<my-app>{%render_vue"myApp"props=props%}</my-app>
About
Python and Django client for vue-ssr-service
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published