Bottle PyPugjs Template
Este es un plugin de bottle para poder usar la libreria de pypugjs en las vistas
Inicio rapido
El plugin de bottle-pypugjs permite usar la tres formas que bottle define para manejar los templates
from bottle import route, install
from bottle.ext.pypugjs import template, view, Plugin
# Usando la funcion template
@route('/index')
def index():
return template('index.pug')
# Usando el decorador view
@route('/index')
@view('index.pug')
def index():
return {}
app.install(Plugin())
# Usando el argumento *template* en la ruta que provee el plugin
@route('/index', template='index.pug')
def index():
return {}
Con estos ejemplos se resume el funcionamiento del plugin.
Metadata
Release files for bottle-pypugjs 0.1.1.post6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bottle-pypugjs-0.1.1.post6.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bottle_pypugjs-0.1.1.post6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / bottle-pypugjs-0.1.1.post6.tar.gz
| Download URL | bottle-pypugjs-0.1.1.post6.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a960427cb83636bda5332a2effe13ff7e3963d653a015d08e4fe6cdaf8b88a1
|
|
BLAKE2b-256 checksum How to use checksums |
2e819803ef29b2e1739965d627aae240d6bb232c20a3c8fb0e4b0485fe0deb34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / bottle_pypugjs-0.1.1.post6-py3-none-any.whl
| Download URL | bottle_pypugjs-0.1.1.post6-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
099f21d283a559e2beb9a6a48403132021e0eb19e1f69cac9e71da9cafa6db58
|
|
BLAKE2b-256 checksum How to use checksums |
b44a34a863e7c64f06bdea14f73248e42f5e8a1cf12852e326697ec0b6edb9f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|