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.6.tar.gz (6.9 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.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for textglue-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3b5edce24d1c372560a3048f7f9fa6341e8066538818c7c7d218a3ce0f87484e
MD5 55f453575827215e0a46dba01a545ea2
BLAKE2b-256 bd11d31051f02b5f4286ad21e02a7ff5befdf256e42647995c549a98dd7a1fc5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for textglue-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8512a1317377c069da504091c8edab8f323f6b8afdf6f6acd0d5fc508f012e77
MD5 770a8bf674e9801ed9c2c6150f00e390
BLAKE2b-256 80032f9b1669afef7844219056cbae0fc029c512c8574a9db54ea855b5fb66d5

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