#jinja2 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jinja2, aggregated by home.social.
-
Just released the
askamarust crate (jinja templating)0.16.0version!It comes with a lot of nice features and increased support of
jinjafeatures.You can see the full details here: https://github.com/askama-rs/askama/releases/tag/v0.16.0
https://crates.io/crates/askama
Enjoy!
-
Se me hacia cuesta arriba domar un tema existente, tipo blog. Con #CSS modernos puedes hacer layouts responsivos fácilmente con grid/flex. Puedes injectar los parámetros basicos para el branding del yaml al template html como variables CSS y propagar/modificar con calc y funciones de color. El resto de cosas que ofrece el generador ya estan en python: #jinja2, #markdown, #yaml, #watchdog...
-
jinja2-fragments now has proper #Starlette support: https://jinja2-fragments.readthedocs.io/latest/framework_integrations.html#starlette-integration
If you are using #htmx with Starlette, this might be of interest to you :)
-
SSTI в Python под микроскопом: разбираем Python-шаблонизаторы
В статье разберем, какой импакт атакующие могут получить, используя SSTI (server-side template injection) в пяти самых популярных шаблонизаторах для Python: Jinja2, Django Templates, Mako, Chameleon, Tornado Templates. Отметим, что это не новый ресерч с rocket-science-векторами, а анализ работы уже известных PoC и разбор улучшений части из них, которая может быть полезна при тестировании. Приятного прочтения! Читать
https://habr.com/ru/companies/bizone/articles/896556/
#ssti #вебуязвимости #пентест #багбаунти #шаблонизатор #jinja2 #django_templates
-
„Im Schnitt betrug die Nettokaltmiete in Spiekeroog am Stichtag 10,55 €/qm. Unter den 100 teuersten Gemeinden Deutschlands nimmt Spiekeroog damit Platz 68 ein. Bezogen auf die teuersten Gemeinden in Niedersachsen ist Spiekeroog die Nummer 2.“
-
Automatische Textbefüllung mit #Jinja2 (Python) aus den Daten des #Zensus 2022:
„Im Schnitt betrug die Nettokaltmiete in Magdeburg am Stichtag 5,75 €/qm. Bezogen auf die teuersten Gemeinden in Sachsen-Anhalt ist Magdeburg damit die Nummer 9.“
https://www.zensus2022.de/DE/Ergebnisse-des-Zensus/_inhalt.html
-
Myslel jsem si, že z kombinace #Jinja2 a #Markdown je akorát nepořádek, zvlášť když přimíchám makra, a že ten moderní přístup, to #MDX, kdy se všechno píše jako nějaké ty frontendové komponenty a tak, že by to bylo lepší.
Teď mám pod rukama větší projekt, kde je všechno to nové: #Docusaurus, .md, .mdx, .jsx, .tsx… a teda nemám pocit, že by to byl nějaký menší bordel.
Zjevně to vždy začne „budou to jen Markdown soubory v adresáři, fakt jen pár dynamických věcí“, a skončí to jako PHP verze 3.
-
New release of Jinja Fragments is out with support for Litestar thanks to @pythonbynight !
-
What would you choose if you had to choose between #handlebars and #jinja2 templating engines?
Please share for visibility and comment for science.
-
I moved servers, so here's an #Introduction:
I'm a #Python / #Java #SoftwareEngineer by day, but after that I interact with a lot of #FOSS and other #OpenSource projects.
I maintain and own #Select2, the #JavaScript library that I joke is keeping #jQuery alive. I'm also a maintainer on #DjangoRestFramework and #Jinja2 but I'll admit I do less with them now that I don't use #Django for work.
I have a lot of #HomeAutomation projects that make heavy use of #HomeAssistant (#ESPHome, #ZigBee).
-
An #Introduction:
I'm a #Python #SoftwareEngineer by day, but after that I interact with a lot of #FOSS and other #OpenSource projects.
I maintain and own #Select2, the #JavaScript library that I joke is keeping #jQuery alive. I'm also a maintainer on #DjangoRestFramework and #Jinja2 but I'll admit I do less with them now that I don't use #Django for work.
I have a lot of #HomeAutomation projects that make heavy use of #HomeAssistant (#ESPHome, #ZigBee).