Skip to main content

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 %}
    ;;
  }
}
"""

Metadata

Release files for lkmlfmt-djhtml 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lkmlfmt-djhtml 0.0.1
File Size Uploaded Provenance Actions
lkmlfmt_djhtml-0.0.1.tar.gz 14.7 kB Without provenance Details for lkmlfmt_djhtml-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lkmlfmt-djhtml 0.0.1
File Interpreter ABI Platform Actions
lkmlfmt_djhtml-0.0.1-py3-none-any.whl Python 3 none any Details for lkmlfmt_djhtml-0.0.1-py3-none-any.whl

Total release size: 29.9 kB

Release files / lkmlfmt_djhtml-0.0.1.tar.gz

Download URL lkmlfmt_djhtml-0.0.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b66727219fe8b87ed1c7087c20a6a699e17b51e84a8f2ab35a18004e030d4ec4
BLAKE2b-256 checksum
How to use checksums
7691115c005f49968a115baef5a6883c7d303dd67f210bd4fee3a47bc8063b77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.0 CPython/3.10.6 Linux/5.15.0-1037-azure

Release files / lkmlfmt_djhtml-0.0.1-py3-none-any.whl

Download URL lkmlfmt_djhtml-0.0.1-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c901d7b32d756684eb1dd012e31227c9f576be899499004c7315cae262b50001
BLAKE2b-256 checksum
How to use checksums
f4e0fdee6398a0f3a97b771ff31cc20e0943953868f4e742a5fcdbd87cdd698c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.0 CPython/3.10.6 Linux/5.15.0-1037-azure

Security for lkmlfmt-djhtml 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page