Skip to main content

Python template engine.

Project description

Is a template engine built in completely other way then before.

First - you can use all python and more - you must use it if you want somwthing more then just tags.

Second - it completely iterative. You can feed iterators or generators as input and get iterative output.

Third - it works through imports. If you want to get template just import it and use. If you want include other template - import it. If you want template in some dir, import it! Like `from . import other_template`.

So, with this principles in mind, you can try this proof of concept thing, due it is not complete:

import backslant

sys.meta_path.insert(0, backslant.PymlFinder(‘./templates’, hook=’backslant_import’)) from backslant_import.home import index

for chunk in index.render():

print(chunk)

I will complete feture set soon, stay tuned. Pssst, we will have ruby-like blocks, dont tell anyone.

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

backslant-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

backslant-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file backslant-0.0.2.tar.gz.

File metadata

  • Download URL: backslant-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for backslant-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8153d4b0b0545cd579c8db4c107d2a29c3b22dd427993bf6218bf54eebd53d06
MD5 aa3bd5db03d21918e1ce2656d8f2d45e
BLAKE2b-256 cfb419a08899f73834cb31f5b092b2f445dec736b0942950e488d206f5b620d1

See more details on using hashes here.

File details

Details for the file backslant-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for backslant-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bd1e07d8e926e8ca7cffcd4beca37219cad74342b1d37a6eafab81041b7c3c6
MD5 568e98785978866d1f657a9383b277d5
BLAKE2b-256 0c7c812ced1a0dce267a6febf1f027e310e28ec2f973654874f3a016b31bab26

See more details on using hashes here.

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