#jinja — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jinja, aggregated by home.social.
-
Totally normal workflow:
I work on documenting #Jinja syntax used in #CondaForge recipes.
https://github.com/conda-forge/conda-forge.github.io/pull/2782
I decide that the snippets would use Jinja syntax highlighting. However, #Prism doesn't have one. But Internets suggest Twig would work instead.
https://github.com/PrismJS/prism/issues/759
So I try Twig. Except that Twig highlighter crashes in #Docusaurus. But there's a workaround.
https://github.com/facebook/docusaurus/issues/8065
So I copy the code over to the project, fix it and while at it, rename it to "jinja" and adjust a bit.
But then, highlighting Jinja expressions alone looks pretty bleak, so let's combine it with YAML… Hmm, that actually doesn't work that well, needs some more adjustments. And before you know it, I have a pretty new Jinja highlighter, and a recipe highlighter that combines Jinja expressions, YAML, v0 recipe selectors, v1 if:/skip: conditions, and also highlighting shell / cmd variables for a good measure.
https://github.com/conda-forge/conda-forge.github.io/pull/2790
-
Column Level Security (CLS) в Apache Superset. Jinja + Handlebars
🔒 Column Level Security (CLS) в Apache Superset: защита данных на уровне столбцов Узнайте, как гибко ограничивать доступ к конфиденциальным данным с помощью Jinja и Handlebars. Практические примеры и готовые решения для ваших дашбордов.
-
I made a thing!
Jinja HTML, a Jinja HTML template code highlighting extension for Panic's Nova editor.
If you use Nova to write Jinja HTML templates, you will know that there has long been only one language extension for Jinja in the Extension Library. You may also know that in the latest beta version, 13b1, that extension stops working properly.
I looked into trying to update the existing extension, but the fix required a ground up rewrite. So I did that!
I haven't submitted it to the Extension Library yet, because I want to dogfood it for a little while first, but if you are one of the (admittedly pretty small number of) people for whom this would be useful, you can grab it from GitHub right now!
-
@JingleDJ Thanks! I've done a bit more reading and experimentation and (along with some other suggestions from folk) I'm fairly confident about things. But it's not natural is it?! Basically, I still agree with this guy: https://www.reddit.com/r/homeassistant/comments/1c0qjo5/comment/kz0dtdr/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Anyway, it is what it is. No changing it now - although installing PyScript or AppDaemon is appealing (even though I've never used Python in anger (yet...) - I'd still be a lot more productive I think)...
#HomeAssistant #Jinja #Python #WhyWhyWhy #HoHum -
Nota, Typst и Evidence. Языки программирования для генерации документов
Все настолько привыкли к Markdown, что считают его неким стандартом для оформления документов в вебе. Но это не конечная истина, высеченная на камне, а просто популярный язык разметки, как HTML и TeX. В то же время появляется всё больше новых языков, которые позиционируют себя как замену, альтернативу или дополнение к Markdown и TeX. В некоторых случаях они включают функции программирования, то есть позволяют добавить в документ исполняемый код. Веб-редакторы нового поколения можно использовать даже вместо Google Docs.
https://habr.com/ru/companies/ruvds/articles/778992/
#ruvds_статьи #Nota #Evidence #LaTeX #Typst #Markdown #бизнесаналитика #Google_Docs #IDE #VSCode #HTML #SGML #KML #KMZ #MathML #SVG #TeX #викиразметка #MediaWiki #Extensible_3D #X3D #XHTML #XML #XHTML_Basic #WML #CHTML #XHTML_MP #Markdoc #Quarto #MDX #Jinja #Liquid #шаблонизаторы #базовое_счисление #Living_Papers