Djavue
Djavue is a Django app that allows the usage of Vue files as Django Templates.
It's meant to be an alternative to Django Templates for developers that want to use Vue as frontend inside Django, without needing to setup npm or webpack.
Installation
- Install django-djavue from pip
pip install django-djavue
- Add djavue to your INSTALLED APPS
INSTALLED_APPS = [
...,
'djavue',
...
]
Quickstart
-
Create a .vue file inside your templates folder.
-
Write a view that loads the template
from djavue import get_vue_template
def index(request):
template = get_vue_template('index.vue', title="Homepage")
return template.render({"""context here"""})
Links:
Release files for django-djavue 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-djavue-0.3.tar.gz | 9.3 kB | Details |
Release files / django-djavue-0.3.tar.gz
| Download URL | django-djavue-0.3.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efb03a120738631bb5f47dbf7fdfc5290c461eab83b202c101bae9759ecc3de8
|
|
BLAKE2b-256 checksum How to use checksums |
b02741ca569e9a470d4364f2b70fd72dabbc1ddc32a00d116f7ad2b27dd427d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|