Skip to main content

No project description provided

Project description

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

.. code-block:: python

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.

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

bottle-pypugjs-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bottle_pypugjs-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file bottle-pypugjs-0.1.0.tar.gz.

File metadata

  • Download URL: bottle-pypugjs-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bottle-pypugjs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9cc4e42b88c4de924d05146a7abe0d5acd203ff46a5945f4b80219905a79f831
MD5 5d7cc9df5f9481feb92662030fe93e85
BLAKE2b-256 c276b286c956943831d11d02d48fb73901ce52ffdf6ec45276c1312b99fd6ff5

See more details on using hashes here.

File details

Details for the file bottle_pypugjs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bottle_pypugjs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bottle_pypugjs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1d863a4dea95bb2ea105e88f4631d1207da3e91c183cf5d113c233beeb329e7
MD5 53a60236ea5f0af16a4856336bbdee6f
BLAKE2b-256 85e6028ac84ebe6bac487999f2e2302935b35f088d81218daba41ca8d1186e34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page