Skip to main content

A port of liquid template engine for python

Project description

liquidpy

A port of liquid template engine for python

Pypi Github PythonVers Travis building Codacy Codacy coverage

Install

# install released version
pip install liquidpy
# install lastest version
pip install git+https://github.com/pwwang/liquidpy.git

Full Documentation

ReadTheDocs

Baisic usage

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

With environments:

liq = Liquid('{{os.path.basename(a)}}', 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.

Source Distribution

liquidpy-0.0.7.tar.gz (13.8 kB view hashes)

Uploaded Source

Built Distribution

liquidpy-0.0.7-py3-none-any.whl (14.1 kB view hashes)

Uploaded Python 3

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