a plugin for lkmlfmt
Project description
lkmlfmt-djhtml
A plugin for lkmlfmt.
Installation
pip install lkmlfmt lkmlfmt-djhtml
CLI
lkmlfmt --plugin lkmlfmt_djhtml
API
from lkmlfmt import fmt
lkml = fmt("""\
view: view_name {
dimension: column_name {
html:
{% if value == "foo" %}
<img src="https://example.com/foo"/>
{% else %}
<img src="https://example.com/bar"/>
{% endif %} ;;
}
}
""", plugins=["lkmlfmt_djhtml"])
assert lkml == """\
view: view_name {
dimension: column_name {
html:
{% if value == "foo" %}
<img src="https://example.com/foo"/>
{% else %}
<img src="https://example.com/bar"/>
{% endif %}
;;
}
}
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lkmlfmt_djhtml-0.0.1.tar.gz
(14.7 kB
view hashes)
Built Distribution
Close
Hashes for lkmlfmt_djhtml-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c901d7b32d756684eb1dd012e31227c9f576be899499004c7315cae262b50001 |
|
MD5 | fff9caf6646dc9a0c3755ad815b020cc |
|
BLAKE2b-256 | f4e0fdee6398a0f3a97b771ff31cc20e0943953868f4e742a5fcdbd87cdd698c |