Skip to main content

Template support for flask application

Project description

Template support for flask application

Quickstart

Install flask_template_support using pip:

$ pip install Flask-TemplateSupport

Example usage

from flask import render_template
from flask_template_support import TemplateSupport


def test_sum(a, b):
    return a + b


def test_sub(a, b):
    return a - b


app = Flask(__name__)
ts = TemplateSupport()

ts.init_app(app, functs=(
        (test_sum, 'sum'),
        (test_sub, 'sub'),
    ))

Run test.py in example folder and go to http://127.0.0.1:5000/ to see if it works

License MIT

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

Flask-TemplateSupport-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

Flask_TemplateSupport-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file Flask-TemplateSupport-1.0.0.tar.gz.

File metadata

  • Download URL: Flask-TemplateSupport-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for Flask-TemplateSupport-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1ba7d11a6622406da88c7bd85a3d4e1b2c87dda29da1e812ad7c299e0192bc62
MD5 708c7ad26bc3ceecde48c52b03570441
BLAKE2b-256 a5b659fe0eaab90c666e97795332ffa7fde7f053f46c2490cb3797aa63cb90a2

See more details on using hashes here.

File details

Details for the file Flask_TemplateSupport-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: Flask_TemplateSupport-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for Flask_TemplateSupport-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff622eae3065159e60c8727a431f1ce14b05563246f3055e369e479c8d91d0e6
MD5 c6511ab8f9cebd1c24a7cbf73a12f42c
BLAKE2b-256 1b636070da2cbcb7b4c7dedb0ff74e05762ccf5991faf7b0c67de898a6c21344

See more details on using hashes here.

Supported by

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