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’)) from 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file backslant-0.0.1.tar.gz
.
File metadata
- Download URL: backslant-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d33812c792c8b80efd8ef41a847d18c1bfd4eb009a4cb37a933163a67be0f472 |
|
MD5 | 942d05401e6573818b3c09218f93db6c |
|
BLAKE2b-256 | 180de44803fe396f500db0f5220f5942d6c32171693b54e1ec360f81c6dc0adb |
File details
Details for the file backslant-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: backslant-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de030c75c9baf1196ff0fe95a1adf482d04bcc0cd22a40f47cf88cf5a6cd5423 |
|
MD5 | eee4281740275ef6c206f6b8071d9f1b |
|
BLAKE2b-256 | 46f7fe35c1407d1f685e72b930ce43e29edd8487578e30bdf7f4ccfb48ad762c |