Vue.js 1.0+ integration for Flask (Python 3 version)
Project description
Flask-Vue packages Vue.js and many extended scripts into an extension.
It can also create links to serve Vue from a CDN and works with no boilerplate code in your application.
Contain Scripts
Scripts List
vue |
1.0.26 |
---|---|
vue-async-data |
1.0.2 |
vue-form |
0.3.1 |
vue-i18n |
4.6.0 |
vue-resource |
1.0.3 |
vue-router |
0.7.13 |
vue-validator |
2.1.7 |
vue-table |
1.5.3 |
Usage
Here is an example on init Vue:
from flask_vue import Vue [...] Vue(app) or vue = Vue() vue.init_app(app)
Configuration
There are configuration options used by Flask-Vue.
Option |
Default |
|
---|---|---|
VUE_USE_MINIFIED |
True |
Whether or not to use the minified scripts. |
VUE_SERVE_LOCAL |
False |
If True, scripts will be served from the local instance. |
VUE_LOCAL_SUBDOMAIN |
None |
Passes a subdomain parameter to the generated Blueprint. Useful when serving assets locally from a different subdomain. |
VUE_CDN_FORCE_SSL |
True |
If a CDN resource url starts with //, prepend ‘https:’ to it. |
VUE_CONFIGURATION |
flask_vue.config |
Individualized setting about each script. It supports to config CDN scripts which do not have local instance. |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Flask_Vue-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fea6f75cc4b7e4bc83d8c3fb1de3ab040e7b9a8db48fcdf95e30de5cae89fb6 |
|
MD5 | c81e94b808ed77ffdd46540e8ff5c5b1 |
|
BLAKE2b-256 | 96b6d618e234b7820bfe2bfd623189f26cb2e5f16e0ca5ced346216e5066d8a4 |