Metadata-Version: 2.1
Name: flask-vuejs
Version: 0.1.2
Summary: Connect Flask With VueJS Framework
Home-page: https://github.com/pacotei/flask-vuejs
License: MIT
Keywords: fkask + vuejs,flask-vue,vuejs,create app with flask and vue
Author: Marcus Pereira
Author-email: oi@pacotei.xyz
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: flask (>=1.1.1,<2.0.0)
Requires-Dist: flask-assets (>=2.0,<3.0)
Project-URL: Repository, https://github.com/pacotei/flask-vuejs
Description-Content-Type: text/markdown

# Install

For install the package run:

```
$ pip install flask-vuejs
```

# Using

Import the Vue class in bootstrap flask file, see:

```ptyhon
from flask_vuejs import Vue
```

## Register extension
```ptyhon
Vue(app)
```

## With Factory
```ptyhon
vue = Vue()

def create_app():
    app = Flask(__name__)
    vue.init_app(app)
```

## Configuration

You can set the component directory, by default it uses 'static/components' folder, but, it can be easily changed.

```ptyhon
def create_app():
    app.config["FLASK_VUE_COMPONENT_DIRECTORY"] = "vuecomponent"
```
Remember, if you changed component directory, you'll should be rename this directory on 'static' folder application

## [JInja Template]

You can see how its works [here](https://github.com/pacotei/flask-vuejs/tree/master/sample_app)
