An upgraded version of good ol' Eebuilder, a static site generator that 'converts' Python 3 code to HTML 5.
Project description
This project's name has been changed to Ebuilder
We have renamed Ebuilder Ultra to Ebuilder in preperation for our web framework named Ebuilder Ultra. Don't wory thought, this repo isn't going anywhere!
Purpose
The purpose of this is to:
A) Give me a project to work on
B) Provide a simple static site generator using python
Installation
pip install Ebuilder
Simple Usage
This first simple example would create a .html file with a h1 tag, centered and gray.
from ebuilder.ebuilder_core import *
index = newpage('index')
title = header(index, "Hello GitHub!")
title.center()
title.color('gray')
index.commit()
from ebuilder.ebuilder_core import EbuilderTextComponent as etc
header_two = etc("h2")
This second simple example would create a new Text Component with the html tag h2 which for those of you unfamiliar with html is the second biggest size of text that is included without further styling (h1 being the first)
You can then call this like you would header, because they both use the EbuilderTextComponent class.
Note that if you only import EbuilderTextComponent you wont be able to access the other functions of Ebuilder Ultra, like making a new page, it is shown here because it is the most efficient way.
Whats New in version 0.2.5
- Fixed bug in ebuilder_decorators that was stopping it from running.
Advice Welcome
Feel free to dig through the source code and open Pull Requests and start issues, if you dig you'll see that EbuilderTextComponent has a bit of a weird implementation....
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 Ebuilder-0.2.6.3.2.tar.gz
.
File metadata
- Download URL: Ebuilder-0.2.6.3.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c142d3484c78050b76840f9320dd42a0f1cc56785457f163e7cb77a164ae4cf9 |
|
MD5 | 29c1989ec24025929a28a93ff2108262 |
|
BLAKE2b-256 | 0420f10c468b599e8b25b14166800376dc66358b98390967321878e7f2c897e3 |
File details
Details for the file Ebuilder-0.2.6.3.2-py3-none-any.whl
.
File metadata
- Download URL: Ebuilder-0.2.6.3.2-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9519565e815423ab43611bf7ce47e2cd97260e29fc026318dc62f6ee5025e3b6 |
|
MD5 | 894df074979c4aeef13628c6065c67d6 |
|
BLAKE2b-256 | 5a9d5ceeb16df33c95c788cf2d061e9507cc6f8872ed4f0ac245c140e976141f |