This video will demonstrate the benefits of avoiding repeated code in your Django templates, by extracting common functionality to template fragments and passing contexts to the {% include %} template-tag.
We will also look at django-slippers - a UI component library for building repeatable components in your Django applications.
☕️ ???????????? ???????? ???? ????????????????????????:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
▶️ Full Playlist:
https://www.youtube.com/playlist?list=PL-2EBeDYMIbQIu4aMZYqM6_w1ihIKWIql
???????????????????????? ????????????????????:
???? Blog: https://www.bugbytes.io/posts/
???? Github: https://github.com/bugbytes-io/
???? Twitter: https://twitter.com/bugbytesio
???? ???????????????????????????? ???????????????????????????? ???????????? ????????????????????????????????????????????:
Django 'include' templatetag: https://docs.djangoproject.com/en/4.0/ref/templates/builtins/#include
django-slippers: https://mitchel.me/slippers/docs/introduction/
django-slippers intallation: https://mitchel.me/slippers/docs/installation/
django-slippers creating a component: https://mitchel.me/slippers/docs/getting-started/#creating-our-first-component
#django #python