Dan Poulin · @epocsquadron
1 followers · 21 posts · Server fosstodon.org

, , , and are all very similar template languages. has support for twig, but not the others, so I set the language manually to get the others. I did a little digging and there is a grammar for liquid and jinja2, but not tera. It seems to me like there should be a standard set up with a common grammar that can be extended by each so they aren't starting from scratch. Also shouldn't there be a common standard to those templating engines altogether?

#tera #jinja2 #twig #liquid #HelixEditor #treesitter

Last updated 1 year ago

Remsd1 · @Fritange
238 followers · 211 posts · Server maly.io

ça peut faire gagner du temps :
jinjafx.io/

Test d'expressions .

#jinja #jinja2

Last updated 1 year ago

stark@techhub:~$ █ · @Stark9837
448 followers · 2341 posts · Server techhub.social

Here is an example of an implementation similar to the welcoming-message functionality used by @3dprinting to welcome new users.

The function is automatically called for every new follow. The account information of the user can then be used to render a template and send a message to the user.

# Python

#jinja2

Last updated 1 year ago

stark@techhub.social:~$ █ · @Stark9837
430 followers · 2267 posts · Server techhub.social

@mcdanlj @3dprinting

We also use for the custom messages the bot sends to new followers.

#jinja2

Last updated 1 year ago

Daniel · @dad
616 followers · 11066 posts · Server mastodon.eole.education

J’ai du mal avec épisode trente douze mille

name= "machin"
print(f"{name.upper()}") ⮕ "MACHIN"

vs

template = "{name.upper()}"
print(template.format(name=name)) ⮕ AttributeError: 'str' object has no attribute 'upper()'

Nan mais sérieusement ! Avec la syntaxe f'{bidule}' tu interprète bien ce qui est entre accolades mais pas avec ''.format()

Bon, ben on va sortir alors, pour un pauvre truc à 2 balles… 🤦

#python #jinja2

Last updated 1 year ago

Jeff MacKinnon · @Jeff
227 followers · 1885 posts · Server bluenoser.me

Has anyone come across a Pelican SSG plug-in or a way to filter articles with Jinja2 that would allow me to filter out a single category from a template?

I suspect this is a solved problem, but I can’t come across it.

github.com/getpelican/pelican/

#pelicanssg #jinja2

Last updated 1 year ago

Aaron C · @aconaway
260 followers · 387 posts · Server masto.ai

I'm dealing with whitespace issues in . Someone send help!

#jinja2 #python

Last updated 1 year ago

Thomas Liske · @liske
30 followers · 92 posts · Server ibh.social

I need the date in about a month in the future for a template in a deployment... 🤷

- there seems to be no function to create a timedelta object
- date objects can be created from strings (via to_datetime filter) or by the yaml parser (d1, d2)
- substracting date objects exposes a timedelta object 🏴‍☠️

THIS FEELS KIND OF WEIRD 🥴 🤪

is there a more reasonable solution❓

#jinja2 #ansible

Last updated 2 years ago

swak4foam and pyFoam · @swakPyFoam
16 followers · 7 posts · Server fosstodon.org

Pushed some changes to the development repository that allow pyFoamPrepareCase.py the popular as a templating language instead of the built-in
Will be in the

#pyfoam #jinja2 #pyratemp #nextrelease

Last updated 2 years ago

Oliver Andrich · @oliver
260 followers · 1283 posts · Server 2pxnl.de

Does anyone have a rough estimate what performance gains to expect when moving from templates to templates in a larger project?

#django #jinja2

Last updated 2 years ago

maegul · @maegul
39 followers · 559 posts · Server mas.to

For or s, @dev (homepage microblog.pub/) seems rather appealing. + + + templates (and ) seems appropriate for a hackable and straightforward setup for a single user server.

I looked at masto.host but was disappointed at the lack of hackability, while a setup from scratch seems like too much work.

#nginx #jinja2 #sqlite #fastapi #Python #singleuserinstance #selfhosting

Last updated 2 years ago

Nicolas Piatto · @subarbare
32 followers · 24 posts · Server mastodon.social

I dug in an old code I made 3years ago. Oh boy that was a mistake :(
WTF I was thinking back then….

#jinja2

Last updated 2 years ago

Jon R · @saibeaks
20 followers · 25 posts · Server fosstodon.org

Last day of work in 2022 has been utterly boring. In the afternoon, I didn't know what else to do, so I started reading tutorials of . I need to spend more time with it.

#jinja2

Last updated 2 years ago

Keir Rice ⬢ · @keir
221 followers · 332 posts · Server cloudisland.nz

But the upshot is I now have my old timeline in Fress RSS.

I also got to play with , , and as well as getting Pycharm to play nice with and

#rss #html #jinja2 #poetry #docker

Last updated 2 years ago

Osma A · @osma
128 followers · 244 posts · Server mas.to

I don't know about you, but I think there are few things in the world of computing as infuriating as combining a whitespace-sensitive format like with a whitespace-insensitive templating system like . I dread having to touch most applications because of this combo.

#Python #jinja2 #yaml

Last updated 2 years ago

lil5 :xfce: · @lil5
65 followers · 859 posts · Server fosstodon.org

@oscarmlage

Yes I found that project day, go template is not the friendliest template language out there and Tera template language looks great!
And I’m already writing in ansible

#jinja2 #zola

Last updated 2 years ago

Kevin Brown-Silva · @kevinbrownsilva
17 followers · 66 posts · Server fosstodon.org

An :

I'm a by day, but after that I interact with a lot of and other projects.

I maintain and own , the library that I joke is keeping alive. I'm also a maintainer on and but I'll admit I do less with them now that I don't use for work.

I have a lot of projects that make heavy use of (, ).

#introduction #python #softwareengineer #foss #opensource #select2 #javascript #jquery #djangorestframework #jinja2 #django #homeautomation #homeassistant #esphome #zigbee

Last updated 2 years ago

Über das auf einem mit separater überwacht, brauchte gerade folgendes Wissen:

* Eigenheiten von Zabbix
* Eigenheiten des
* Eigenheiten der Maintainer von Zabbix für die debian pakete.
* Eigenheiten … Configurationsstruktur der Distro Maintainer
* Eigenheiten … Ansible community.zabbix repo
*
*

Und ich glaube das war es, mehr musste ich dafür heute nicht weiter, sehr gut kennen. o.O
Ps. Ja, tat weh.

#ansible #automatisieren #zabbix #postgresql #debian #datenbank #zabbix_agent2 #yaml #jinja2

Last updated 2 years ago

Mike · @WabuMike
52 followers · 194 posts · Server fosstodon.org

My hot pick of the day: slurp (docs.ansible.com/ansible/lates). Reading a file with slurp in combination with filters (docs.ansible.com/ansible/lates) gives you the power to check for the contents of a file.

#ansible #jinja2

Last updated 3 years ago

· @Creideiki
99 followers · 1832 posts · Server mastodon.social

Having just thrown out a clunky limited string substitution engine for producing e-mail and replaced it with , I can confidently say:

Jinja2 all the things!

#jinja2

Last updated 4 years ago