Skip to main content

A fast and lightweight Python template engine

Project description

Build Status - Travis CI

A fast and lightweight Python template engine

Features

  • Easy to use.

  • High performance.

  • Autoescaping.

  • Template inheritance.

  • Supports native python expressions.

Nutshell

Here a small example of a Quik template

<ul>
    #for @user in @users:
        #if @user.age > 18:
        <li><a href="@user.url">@user.username</a></li>
        #end
    #end
</ul>

Use It

Render via template:

from quik import FileLoader

loader = FileLoader('html')
template = loader.load_template('index.html')
print template.render({'author': 'Thiago Avelino'},
                      loader=loader).encode('utf-8')

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

quik-0.2.2.tar.gz (15.6 kB view details)

Uploaded Source

File details

Details for the file quik-0.2.2.tar.gz.

File metadata

  • Download URL: quik-0.2.2.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for quik-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a4857e3c644828a89b83b81ff5023fa47712424923717c2987fb3dd8e2339ab8
MD5 c37a436352c35cc184402d5e86d0ba6c
BLAKE2b-256 8cc39a82e1acc8ec3ba40d0a0f4d11384a5ac47923686caef00e2a48f7da16ab

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