Static Page Generation with Flask-like simplicity and flair ✨
Project description
What is RenderEngine
The idea of Render Engine is that you have the flexibility of dynamic webpages with the performance of static sites.
Render Engine was built out of frustration with existing tools. Larger frameworks are too vast. Dynamic Services like Flask required overhead of a server where in many cases were not necessary. Extensions to Flask that provided a static component added even more unnecessary complexity and updates have been inconsistent. Other static-site generators like Pelican were built without modern architectures and design practices in mind.
The 4 layer Architecture
- Page - A single webpage item built from content, a template, raw data, or a combination of those things.
- Collection - A group of webpages built from the same template, organized in a single directory
- Engine - The environments that turn your pre-content and templates into rendered HTML
- Site - The container that holds all Pages and Collections and gives access to global configurations and settings.
You can expand on these areas to customize your engine to your liking.
Things you can do in with Render Engine:
- Create Custom Page Objects (Like Blogs or MicroBlog Posts)
- Create all types of Page Objects, not just 'html' pages
- Run Multiple Engines for subdomains or multiple template systems or Multiple Sites!
- Dynamically create content at runtime to include into your static sites
As simple/complex as required
- Render Engine uses Jinja2 as the defaul engine to bring the power of templates to your page. You can create your own custom engines if you have a specific need.
- Content can be markdown/html/or RAW DATA to give you the content you need.
Dependencies:
- Python3.7 or later.
- Jinja2 - for template things
- Pendulum - for datetime things
- Click - for some commandline goodness
Installing Render Engine
Using pip
pip install render-engine
Get Started Quickly
Render Engine DOESN'T Need the following but the this is a base module that can quickly get you on your way
content/ # store content for collections here
run.py # use render_engine run.py to build site
templates/
- page.html # default template for Page objects. Modify this file to fit your design
- all_posts.html # default template for Collection objects. Modify this file to fit your design
static/ # will be copied into your generated output. great for storing css/.js/image files
[ ] Todo: Build this functionality out into quickstart
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
Hashes for render_engine-2020.3.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e37c6f3169e85988cec92f9ebd9a92e04d0eb4705e19261f75574e274ae363 |
|
MD5 | 30b179916da75411f5bcc001342adaf5 |
|
BLAKE2b-256 | 2e3dec07199c8c2c5db0e6741820f1b32c390dfa7170f2c5cc49e8bc6c4f5005 |