skip to navigation
skip to content

Not Logged In

quik 0.2.2

A fast and lightweight Python template engine

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')
 
File Type Py Version Uploaded on Size
quik-0.2.2.tar.gz (md5) Source 2013-09-06 15KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 100 downloads in the last week
  • 500 downloads in the last month