A Django app to render Vue files as templates.
Project description
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-djavue-0.3.tar.gz
(9.3 kB
view hashes)