Hey! April Templating System
Project description
April is a composable templating system.
__doc__
April is a simple (read: extremely limited) composable template system. Its honestly probably not any better than using a different templating system, but it’s a lot simpler.
April assumes you’re going to use Bootstrap, and it comes with its own Bootstrap bundled in package_data. (You can use copy_assets to copy it somewhere appropriate.)
Usually, you’ll end up doing something like:
b_int1 = hey_april.BSSkeleton(
'An Exciting Page Title',
'Some Corner Text',
'',
[
hey_april.BSSection(
'Section 1', 'The second section...', 'Section 1', 'sec1',
[
hey_april.BSPara('this is the first section')
]
),
hey_april.BSSection(
'Section 2', 'Another section!', 'Section 2', 'sec2',
[
hey_april.BSTwoUp(
hey_april.BSHTML('foo'),
hey_april.BSHTML('bar')
)
]
),
hey_april.BSSection(
'Section 3', 'The CSV!', 'Section 3', 'sec3',
[
hey_april.BSCSVTable(
'txt/scores.csv'
)
]
)
],
'https://something.com'
)
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
hey_april-1.0.5.tar.gz
(106.3 kB
view details)
File details
Details for the file hey_april-1.0.5.tar.gz.
File metadata
- Download URL: hey_april-1.0.5.tar.gz
- Upload date:
- Size: 106.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398a5890576a74ea12d0ef21d3f368836d5ebd6b4b0403cec8e8cc3d70a19531
|
|
| MD5 |
5051e4631265411e770eac763666b60b
|
|
| BLAKE2b-256 |
55a227a670a1a605c968ae1b5f5cdd7f1f7f7e77e4429d29c43c34d86aae49bb
|