Skip to content

Latest commit

 

History

History
91 lines (57 loc) · 2.71 KB

File metadata and controls

91 lines (57 loc) · 2.71 KB

Renderhtml

Github top language Github language count Repository size License

🚧 Renderhtml 🚀 Under construction... 🚧


About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author


🎯 About

A simple Jinja2 wrapper for dynamically building html with Python code. It was written as a helper for my work in data manipulation and will probably grow with those requirements.

✨ Features

✔️ Dynamically build HTML;
✔️ Set the values of HTML placeholders;
✔️ Combine multiple templates;

🚀 Technologies

The following tools were used in this project:

✅ Requirements

Before starting 🏁, you need to have Git, Python V3.6+ and Pip installed. It is highly recomended you use a virtual environment like venv! If you do not already have Jinja2 installed in your env it will be installed with this package.

🏁 Starting

# To install:
pip install git+https://github.com/dan-hobday/renderhtml

💻 Use

<!--example.html-->

<p><strong>{{ title }}</strong></p>
# main.py

from renderhtml import RenderHTML

# Setup - If no path is provided will look for templates in the current directory (./) 
render = RenderHTML("/Path/to/my/templates")

title = "Hello World!"
html = render.render_template("example.html", title=title)

📝 License

This project is licensed under GPL-3.0. For more details, see the LICENSE file.

Written by github.com/dan-hobday

 

Back to top