How to reuse code blocks easily with Jinja2 macros!

How to reuse code blocks easily with Jinja2 macros!

teclado

3 года назад

19,507 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@jimperkins9661
@jimperkins9661 - 01.09.2023 08:48

Now do it for a hand of 13 cards in the form {(html code, eg,) ❤(rank, eg) A} where each of the four suits has different css formatting (mainly color).

Ответить
@elvistermopan2944
@elvistermopan2944 - 01.06.2023 23:12

Great material. Thank you for sharing it.

Ответить
@vigneshkarthikprofessional9824
@vigneshkarthikprofessional9824 - 16.02.2023 17:35

Super bro, very simplified, I'm subscribed

Ответить
@deemon710
@deemon710 - 28.07.2022 06:49

Ooooh, slick. What if in a scenario where you use the same macro to create multiple tables, you want to pass another class name via the macro function so you can uniquely identify the table? Is that possible?

Ответить
@simoncarroz2994
@simoncarroz2994 - 30.11.2021 15:54

Beautiful, just beautiful

Ответить
@mafricimangmailaccount6611
@mafricimangmailaccount6611 - 15.11.2021 15:48

Thanks for the video! This data in routes is static. What if we've got data in models that we want to show in a more dynamic way?

Ответить
@ranitdey7369
@ranitdey7369 - 16.10.2021 21:28

This is a really nice & crisp explanation.

Ответить
@ayo9344
@ayo9344 - 26.08.2021 15:16

Wow!! Do you have any other videos on jinja syntax, keywords?

Ответить
@jonascarvalho7331
@jonascarvalho7331 - 26.08.2021 07:11

This is great. And makes me think somebody must create a framework using this core concept.

Ответить
@888vitality
@888vitality - 18.08.2021 15:41

Cool!

Ответить
@shan27k
@shan27k - 16.06.2021 09:39

Very nicely explained Jinja Macros in short time, I was able to understand and implement it. Thanks

Ответить
@vaseemmohammed8237
@vaseemmohammed8237 - 01.03.2021 01:40

Hi, do you have any plan on creating a short series on python modules like “python docx” and “docxtpl”? Would be really helpful. Thanks!

Ответить
@mk9834
@mk9834 - 24.02.2021 14:13

thanks so much!

Ответить
@daksheshsharma1747
@daksheshsharma1747 - 14.01.2021 20:18

Hey! Just wanted to ask when the Flask Web Development Course will be updated on Udemy, since the course still has Legacy content and the course introduction says that the update would be done in November'20.

Ответить
@TheSumitBanik
@TheSumitBanik - 24.11.2020 07:14

This is so cool.
So, macros help in the reusability of HTML elements, right?

Ответить
@rangabharath4253
@rangabharath4253 - 23.10.2020 19:17

awesome. Thank u so much :)

Ответить