Skip to main content

textglue - An simple static template system

Project description

textglue

Text Glue

An extremely simple text based static templating system

textglue supports only two tags:

{{file:_body.html}} {{template:_body.html}}

The "file" tag includes the raw source of the file, while the template tag recursively evaluates the file as another template. By default, the maximum recurse depth for templates is 8.

Files with an underscore prefix are ignored unless used in a template. Files with a ".html" extension are rendered as a template, and files without an underscore prefix or ".html" extension, are directly copied to the output folder.

The default input and output folders are "tg_src" and "tg_out". Be careful, as the output folder is deleted every build.

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

textglue-0.0.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textglue-0.0.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file textglue-0.0.4.tar.gz.

File metadata

  • Download URL: textglue-0.0.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for textglue-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8e2a90cc9777b460639c9bcfd94eff86c76b001ba69ceda0602927c282d8aed2
MD5 d89d59e0d59759122662ef69bde4f72b
BLAKE2b-256 94d3bf8d938b67584779e7cb7390d8f622d2f96c8d7ca855bd07265d6d6c6df0

See more details on using hashes here.

File details

Details for the file textglue-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: textglue-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for textglue-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fbaf63674458c1dbe89aa0cbbc33535c5d0d7ed89aed789f9f9ac551ddca5f01
MD5 a354540721f252b72f75e5cf79001ac7
BLAKE2b-256 22b4ad18119b029280d50c4dc2aa4d5e499e33058d4244c44508d3c55b079a32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page