Skip to main content

Simple template engine to convert JSON to HTML/XML

Project description

A simple template engine designed to convert JSON to HTML or XML. Templates hold no logic whatsoever, with nodes being repeated as needed by the replacement data:

>>> from shrubbery import Template
>>> template = "<ul><li>{todo}</li></ul>"
>>> print Template(template, {"todo": "nothing"})
<ul><li>nothing</li></ul>
>>> print Template(template, {"todo": ["one", "two", "three"]})
<ul><li>one</li><li>two</li><li>three</li></ul>

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

shrubbery-0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

shrubbery-0.1-py2.4.egg (6.4 kB view details)

Uploaded Source

File details

Details for the file shrubbery-0.1.tar.gz.

File metadata

  • Download URL: shrubbery-0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shrubbery-0.1.tar.gz
Algorithm Hash digest
SHA256 09b2b4be06e747bf0ec02e2ba5d1ec5b67d7ddefd822aa5d7e51fa9bf3591855
MD5 bfacc331bb8e9b9572767b7d13bc2f49
BLAKE2b-256 48ed05f5dc068288ae7fc44894ef3cadc7e751545b6f36e577644fd3f4c8de04

See more details on using hashes here.

Provenance

File details

Details for the file shrubbery-0.1-py2.4.egg.

File metadata

  • Download URL: shrubbery-0.1-py2.4.egg
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shrubbery-0.1-py2.4.egg
Algorithm Hash digest
SHA256 545ee687bcf8b10028dcfe8e271ad53bd4dd419f230683779204b778337ef0d7
MD5 49c93bb99892069e81755a5a5b6b892b
BLAKE2b-256 9f4bab70d75a7a76dc9dc0d2265c33e8e2d26e2ccae5c8eb2e9563d8878dc670

See more details on using hashes here.

Provenance

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