Skip to main content

A port of liquid template engine for python

Project description


A port of liquid template engine for python

Pypi Github PythonVers ReadTheDocs building Travis building Codacy Codacy coverage


pip install liquidpy

Full Documentation


Baisic usage

from liquid import Liquid
liq = Liquid('{{a}}')
ret = liq.render(a = 1)
# ret == '1'

# load template from a file
liq = Liquid('/path/to/template', liquid_from_file=True)

With environments:

liq = Liquid('{{a | os.path.basename}}', os=__import__('os'))
ret = liq.render(a="path/to/file.txt")
# ret == 'file.txt'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for liquidpy, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size liquidpy-0.5.0-py3-none-any.whl (33.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size liquidpy-0.5.0.tar.gz (29.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page