Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python and Django client for vue-ssr-service

License

NotificationsYou must be signed in to change notification settings

krmax44/vue-ssr-python

Repository files navigation

Test WorkflowPyPI - VersionAPI documentation

Client forvue-ssr-service. See its documentation for aquick start guide.

Warning

This project is in a proof-of-concept state.

Stand-alone

fromvue_ssrimportServerRendererrenderer=ServerRenderer()renderer.render("myComponent",props={"name":"friend"})# "<p>Hello, friend!</p>"

With Django

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp