KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
jinja2_mjml
★ 9
Open GitHub ↗
Jinja2 integration with MJML
Download README (.md)
Explore Similar Repositories
COD2Q3
:
COD4/5 map to Quake 3 map converter
youtube-GPT-summarizer-chrome-extension
:
No description available.
nestjs-pipes
:
JavaScript library that provides pipe functions for Nest.js application.
flutter-location
:
Get User’s Current Location in Flutter Clean Architecture
a-star
:
My successful legacy AStar JavaScript code ported to my own repository
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
jinja2_mjml
?
Download (.md)
# Jinja2 MJML Micro-package that integrates [MJML](https://mjml.io/) with [Jinja2](https://jinja.palletsprojects.com/en/2.11.x/). Under the hood it uses [mjml_python](https://pypi.org/project/mjml-python/) package, that is a wrapper around [rust port](https://github.com/jolimail/mrml-core) of MJML. ## Example ```python from jinja2_mjml import Environment # MJMLEnvironment it's thin wrapper around jinja2.Environment, # so you can use all the features of Jinja2 package. environment = Environment() template = environment.from_string(''' <mjml> <mj-body> <mj-section> <mj-column> <mj-text>Hello {{ name }}!</mj-text> </mj-column> </mj-section> </mj-body> </mjml> ''') # Render MJML template to HTML print(template.render(name='MJML')) ```