#jinja2 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jinja2, aggregated by home.social.
-
Встречайте: muenvsubst — улучшенный envsubst
Все мы любим envsubst за простоту, но он примитивен. Переходить на Python с Jinja2 ради шаблонизации конфигов в CI/CD — всё равно что стрелять из пушки по воробьям, да и тащить рантайм ради пары переменных не хочется. В мире Go есть неплохие аналоги, но их вес в 100 МБ вгоняет в тоску, когда стремишься к минимализму в Docker-образах. Теперь всё изменилось так как появился muenvsubst — замена стандартной утилите, написанная на C++17, заточенная под хардкорную шаблонизацию в инфраструктуре. В этой статье я расскажу, как уместить мощь, близкую к Jinja2 (включая циклы, условия, макросы и вызов shell), в статический бинарник весом менее 400 КБ .
https://habr.com/ru/articles/1041580/
#шаблонизатор #c++17 #upx #jinja2
-
Встречайте: muenvsubst — улучшенный envsubst
Все мы любим envsubst за простоту, но он примитивен. Переходить на Python с Jinja2 ради шаблонизации конфигов в CI/CD — всё равно что стрелять из пушки по воробьям, да и тащить рантайм ради пары переменных не хочется. В мире Go есть неплохие аналоги, но их вес в 100 МБ вгоняет в тоску, когда стремишься к минимализму в Docker-образах. Теперь всё изменилось так как появился muenvsubst — замена стандартной утилите, написанная на C++17, заточенная под хардкорную шаблонизацию в инфраструктуре. В этой статье я расскажу, как уместить мощь, близкую к Jinja2 (включая циклы, условия, макросы и вызов shell), в статический бинарник весом менее 400 КБ .
https://habr.com/ru/articles/1041580/
#шаблонизатор #c++17 #upx #jinja2
-
Встречайте: muenvsubst — улучшенный envsubst
Все мы любим envsubst за простоту, но он примитивен. Переходить на Python с Jinja2 ради шаблонизации конфигов в CI/CD — всё равно что стрелять из пушки по воробьям, да и тащить рантайм ради пары переменных не хочется. В мире Go есть неплохие аналоги, но их вес в 100 МБ вгоняет в тоску, когда стремишься к минимализму в Docker-образах. Теперь всё изменилось так как появился muenvsubst — замена стандартной утилите, написанная на C++17, заточенная под хардкорную шаблонизацию в инфраструктуре. В этой статье я расскажу, как уместить мощь, близкую к Jinja2 (включая циклы, условия, макросы и вызов shell), в статический бинарник весом менее 400 КБ .
https://habr.com/ru/articles/1041580/
#шаблонизатор #c++17 #upx #jinja2
-
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!
-
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!
-
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!
-
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!
-
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!
-
Vengo laburando hace 10 meses en uno de los proyectos mas complejos de mi vida profesional: #Odoofly.
#Odoofly es una herramienta que simplifica el despliegue y mantenimiento de instancias #Odoo en Local o en la nube. No quise reinventar la rueda, pero si tomé las mejores prácticas en mis años de devops y metí todo en una herramienta CLI con una curva de aprendizaje suave.
No reemplaza el laburo de un #Devops, pero si les aseguro que te abstrae de interactuar al pepe con #Docker, por cuestiones relacionados con mantenimiento Odoo(actualizar addons, crear stagings, etc.)
El código esté basado en cimientos modernos: Usé #Typer para el CLI, @pydantic
para validaciones, #Jinja2 para templates, #Rich para textos y salidas facheritas, entre otros.
Si, todo codeado en #Python✌️
¿A quienes va dirigido? implementadores, Devops y empresas de todos los tamaños que quieran simplificar y hacer su infraestructura predecible y auditable.
La licencia será AGPL-3.0. #SoftwareLibre para comunidades libres. -
Vengo laburando hace 10 meses en uno de los proyectos mas complejos de mi vida profesional: #Odoofly.
#Odoofly es una herramienta que simplifica el despliegue y mantenimiento de instancias #Odoo en Local o en la nube. No quise reinventar la rueda, pero si tomé las mejores prácticas en mis años de devops y metí todo en una herramienta CLI con una curva de aprendizaje suave.
No reemplaza el laburo de un #Devops, pero si les aseguro que te abstrae de interactuar al pepe con #Docker, por cuestiones relacionados con mantenimiento Odoo(actualizar addons, crear stagings, etc.)
El código esté basado en cimientos modernos: Usé #Typer para el CLI, @pydantic
para validaciones, #Jinja2 para templates, #Rich para textos y salidas facheritas, entre otros.
Si, todo codeado en #Python✌️
¿A quienes va dirigido? implementadores, Devops y empresas de todos los tamaños que quieran simplificar y hacer su infraestructura predecible y auditable.
La licencia será AGPL-3.0. #SoftwareLibre para comunidades libres. -
Vengo laburando hace 10 meses en uno de los proyectos mas complejos de mi vida profesional: #Odoofly.
#Odoofly es una herramienta que simplifica el despliegue y mantenimiento de instancias #Odoo en Local o en la nube. No quise reinventar la rueda, pero si tomé las mejores prácticas en mis años de devops y metí todo en una herramienta CLI con una curva de aprendizaje suave.
No reemplaza el laburo de un #Devops, pero si les aseguro que te abstrae de interactuar al pepe con #Docker, por cuestiones relacionados con mantenimiento Odoo(actualizar addons, crear stagings, etc.)
El código esté basado en cimientos modernos: Usé #Typer para el CLI, @pydantic
para validaciones, #Jinja2 para templates, #Rich para textos y salidas facheritas, entre otros.
Si, todo codeado en #Python✌️
¿A quienes va dirigido? implementadores, Devops y empresas de todos los tamaños que quieran simplificar y hacer su infraestructura predecible y auditable.
La licencia será AGPL-3.0. #SoftwareLibre para comunidades libres. -
Vengo laburando hace 10 meses en uno de los proyectos mas complejos de mi vida profesional: #Odoofly.
#Odoofly es una herramienta que simplifica el despliegue y mantenimiento de instancias #Odoo en Local o en la nube. No quise reinventar la rueda, pero si tomé las mejores prácticas en mis años de devops y metí todo en una herramienta CLI con una curva de aprendizaje suave.
No reemplaza el laburo de un #Devops, pero si les aseguro que te abstrae de interactuar al pepe con #Docker, por cuestiones relacionados con mantenimiento Odoo(actualizar addons, crear stagings, etc.)
El código esté basado en cimientos modernos: Usé #Typer para el CLI, @pydantic
para validaciones, #Jinja2 para templates, #Rich para textos y salidas facheritas, entre otros.
Si, todo codeado en #Python✌️
¿A quienes va dirigido? implementadores, Devops y empresas de todos los tamaños que quieran simplificar y hacer su infraestructura predecible y auditable.
La licencia será AGPL-3.0. #SoftwareLibre para comunidades libres. -
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...
-
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...
-
Or is there something fucked up with the #Jinja2 parsing (like a bugged library or something)?
Cause I get this in another module:
Where as before it would evaluate to
"published_ports": []
instead...
-
Or is there something fucked up with the #Jinja2 parsing (like a bugged library or something)?
Cause I get this in another module:
Where as before it would evaluate to
"published_ports": []
instead...
-
Or is there something fucked up with the #Jinja2 parsing (like a bugged library or something)?
Cause I get this in another module:
Where as before it would evaluate to
"published_ports": []
instead...
-
Or is there something fucked up with the #Jinja2 parsing (like a bugged library or something)?
Cause I get this in another module:
Where as before it would evaluate to
"published_ports": []
instead...
-
Hết rồi phải gõ HTML string để tạo PDF invoice? PDFMyHTML vừa ra mắt công cụ thiết kế trực quan, hỗ trợ Handlebars & Jinja2. Mời bạn:
- Thiết kế giao diện, xem trước PDF ngay lập tức
- Tách biệt logic backend và view HTML
- Gọi API siêu gọn, không cần render HTML nguyên bảnBạn thích hướng tiếp cận này?
#côngnghệ #PDF #API #SaaS #thiếtKếTrựcQuan #backend #Handlebars #Jinja2 -
Reading the Django 6.0 release notes, I really like the new Template Partials in the Django Template Language, originally started by @carlton. They strongly resonate with the Locality of Behavior design principle.
Since Django also supports Jinja2, I’m curious about convergence there too. Projects like jinja2-fragments by @sergi and jinja_partials by @mkennedy explore similar ideas.
https://docs.djangoproject.com/en/6.0/releases/6.0/
https://github.com/sponsfreixes/jinja2-fragmentsJust a thought, not a proposal 🙂
-
Reading the Django 6.0 release notes, I really like the new Template Partials in the Django Template Language, originally started by @carlton. They strongly resonate with the Locality of Behavior design principle.
Since Django also supports Jinja2, I’m curious about convergence there too. Projects like jinja2-fragments by @sergi and jinja_partials by @mkennedy explore similar ideas.
https://docs.djangoproject.com/en/6.0/releases/6.0/
https://github.com/sponsfreixes/jinja2-fragmentsJust a thought, not a proposal 🙂
-
Reading the Django 6.0 release notes, I really like the new Template Partials in the Django Template Language, originally started by @carlton. They strongly resonate with the Locality of Behavior design principle.
Since Django also supports Jinja2, I’m curious about convergence there too. Projects like jinja2-fragments by @sergi and jinja_partials by @mkennedy explore similar ideas.
https://docs.djangoproject.com/en/6.0/releases/6.0/
https://github.com/sponsfreixes/jinja2-fragmentsJust a thought, not a proposal 🙂
-
Reading the Django 6.0 release notes, I really like the new Template Partials in the Django Template Language, originally started by @carlton. They strongly resonate with the Locality of Behavior design principle.
Since Django also supports Jinja2, I’m curious about convergence there too. Projects like jinja2-fragments by @sergi and jinja_partials by @mkennedy explore similar ideas.
https://docs.djangoproject.com/en/6.0/releases/6.0/
https://github.com/sponsfreixes/jinja2-fragmentsJust a thought, not a proposal 🙂
-
Reading the Django 6.0 release notes, I really like the new Template Partials in the Django Template Language, originally started by @carlton. They strongly resonate with the Locality of Behavior design principle.
Since Django also supports Jinja2, I’m curious about convergence there too. Projects like jinja2-fragments by @sergi and jinja_partials by @mkennedy explore similar ideas.
https://docs.djangoproject.com/en/6.0/releases/6.0/
https://github.com/sponsfreixes/jinja2-fragmentsJust a thought, not a proposal 🙂
-
Учусь Ansible: от пинга до Nginx на Raspberry Pi и Orange Pi
Привет. Я студент, изучаю Ansible на Raspberry Pi через Tailscale. Делюсь полным путем от первой ошибки до работающих веб-серверов. Код + выводы + уроки. Репозиторий на GitHub.
https://habr.com/ru/articles/973466/
#raspberry_pi #nginx #ansible #ansible_playbook #jinja2 #devops #linux
-
Учусь Ansible: от пинга до Nginx на Raspberry Pi и Orange Pi
Привет. Я студент, изучаю Ansible на Raspberry Pi через Tailscale. Делюсь полным путем от первой ошибки до работающих веб-серверов. Код + выводы + уроки. Репозиторий на GitHub.
https://habr.com/ru/articles/973466/
#raspberry_pi #nginx #ansible #ansible_playbook #jinja2 #devops #linux
-
Учусь Ansible: от пинга до Nginx на Raspberry Pi и Orange Pi
Привет. Я студент, изучаю Ansible на Raspberry Pi через Tailscale. Делюсь полным путем от первой ошибки до работающих веб-серверов. Код + выводы + уроки. Репозиторий на GitHub.
https://habr.com/ru/articles/973466/
#raspberry_pi #nginx #ansible #ansible_playbook #jinja2 #devops #linux
-
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 :)
-
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 :)
-
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 :)
-
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 :)
-
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 :)
-
Variables are not passive. Their shape defines your power. Ghost Templates turn data into action.
https://deadswitch.tomsitcafe.com/2025/09/ghost-templates.html
-
Variables are not passive. Their shape defines your power. Ghost Templates turn data into action.
https://deadswitch.tomsitcafe.com/2025/09/ghost-templates.html
-
Variables are not passive. Their shape defines your power. Ghost Templates turn data into action.
https://deadswitch.tomsitcafe.com/2025/09/ghost-templates.html
-
Variables are not passive. Their shape defines your power. Ghost Templates turn data into action.
https://deadswitch.tomsitcafe.com/2025/09/ghost-templates.html
-
Variables are not passive. Their shape defines your power. Ghost Templates turn data into action.
https://deadswitch.tomsitcafe.com/2025/09/ghost-templates.html
-
Logic and data separated. Elite forces of Operations - rise. #Jinja2 #Template #Ansible #IaC #DevOps #Automation
http://tomsitcafe.com/2025/09/04/05-objective-code-as-message-jinja2-templates/
-
Logic and data separated. Elite forces of Operations - rise. #Jinja2 #Template #Ansible #IaC #DevOps #Automation
http://tomsitcafe.com/2025/09/04/05-objective-code-as-message-jinja2-templates/
-
Logic and data separated. Elite forces of Operations - rise. #Jinja2 #Template #Ansible #IaC #DevOps #Automation
http://tomsitcafe.com/2025/09/04/05-objective-code-as-message-jinja2-templates/
-
Logic and data separated. Elite forces of Operations - rise. #Jinja2 #Template #Ansible #IaC #DevOps #Automation
http://tomsitcafe.com/2025/09/04/05-objective-code-as-message-jinja2-templates/
-
Logic and data separated. Elite forces of Operations - rise. #Jinja2 #Template #Ansible #IaC #DevOps #Automation
http://tomsitcafe.com/2025/09/04/05-objective-code-as-message-jinja2-templates/
-
Разбираем «под капотом» кастомную фитнес-метрику: от идеи до реализации на Python
Всем привет! Я, как и многие здесь, не только разработчик, но и человек, увлеченный циклическими видами спорта. Я обожаю копаться в данных своих тренировок из Strava: анализировать мощность, пульсовые зоны, темп. Но мне всегда не хватало одной вещи — единой, понятной и, главное, прозрачной метрики, которая бы отвечала на простой вопрос: "А насколько я сейчас в хорошей форме?". В этой статье я расскажу, как устроен этот механизм "под капотом". Мы погрузимся в логику на Python, посмотрим, как она интегрируется в общий анализатор активностей и как результат подается пользователю в простом и понятном виде. Важный дисклеймер: Весь проект, от идеи до кода, я делаю один в свободное от основной работы время. Он далек от идеала , и я буду очень благодарен за конструктивную критику и свежий взгляд.
https://habr.com/ru/articles/942444/
#python #strava #petproject #анализ_данных #фитнесметрики #вебразработка #flask #jinja2 #спорт #здоровье
-
Разбираем «под капотом» кастомную фитнес-метрику: от идеи до реализации на Python
Всем привет! Я, как и многие здесь, не только разработчик, но и человек, увлеченный циклическими видами спорта. Я обожаю копаться в данных своих тренировок из Strava: анализировать мощность, пульсовые зоны, темп. Но мне всегда не хватало одной вещи — единой, понятной и, главное, прозрачной метрики, которая бы отвечала на простой вопрос: "А насколько я сейчас в хорошей форме?". В этой статье я расскажу, как устроен этот механизм "под капотом". Мы погрузимся в логику на Python, посмотрим, как она интегрируется в общий анализатор активностей и как результат подается пользователю в простом и понятном виде. Важный дисклеймер: Весь проект, от идеи до кода, я делаю один в свободное от основной работы время. Он далек от идеала , и я буду очень благодарен за конструктивную критику и свежий взгляд.
https://habr.com/ru/articles/942444/
#python #strava #petproject #анализ_данных #фитнесметрики #вебразработка #flask #jinja2 #спорт #здоровье
-
Разбираем «под капотом» кастомную фитнес-метрику: от идеи до реализации на Python
Всем привет! Я, как и многие здесь, не только разработчик, но и человек, увлеченный циклическими видами спорта. Я обожаю копаться в данных своих тренировок из Strava: анализировать мощность, пульсовые зоны, темп. Но мне всегда не хватало одной вещи — единой, понятной и, главное, прозрачной метрики, которая бы отвечала на простой вопрос: "А насколько я сейчас в хорошей форме?". В этой статье я расскажу, как устроен этот механизм "под капотом". Мы погрузимся в логику на Python, посмотрим, как она интегрируется в общий анализатор активностей и как результат подается пользователю в простом и понятном виде. Важный дисклеймер: Весь проект, от идеи до кода, я делаю один в свободное от основной работы время. Он далек от идеала , и я буду очень благодарен за конструктивную критику и свежий взгляд.
https://habr.com/ru/articles/942444/
#python #strava #petproject #анализ_данных #фитнесметрики #вебразработка #flask #jinja2 #спорт #здоровье