Skip to main content

textglue - An simple static template system

Project description

textglue

Text Glue

An extremely simple text based static templating system

Commands

  • textglue init - creates a minimal starter project.
  • textglue demo - creates a more complex demonstration project.
  • textglue render - builds the project.

About

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 textglue.json file lets you configure a source directory "src", an output folder "out", as well as the prefix for which files to ignore when rendering

Be careful!

The default input and output folders are "src" and the current directory ".". If the output is not the working directory, and the source and output folders are different, then 'textglue render' will delete the output folder 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.5.tar.gz (6.4 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.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textglue-0.0.5.tar.gz
  • Upload date:
  • Size: 6.4 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.5.tar.gz
Algorithm Hash digest
SHA256 2ea09c62205c7d8f0083c6bad3037579599d9d379ca86ba58a91fd5cc0a14a31
MD5 8d003c21a1db34b68fc174d3baebc7c8
BLAKE2b-256 95591fe90becae39e60ee83f505fcb8f04a3d813627288ca78387efb9f89c831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: textglue-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 72faa7a3e8c0eb8a6a071144e9dedfe5175e5c6750cd0b27ab0373b996e9ec94
MD5 8e25b88e74cf2d6f89c708ba7ce4ab5a
BLAKE2b-256 f7ee94adec600509ce1be0e8daffb00807d155aedcafc2b408bdf281ccf046ba

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