- Django 2 by Example
- Antonio Melé
- 88字
- 2021-06-25 21:19:06
Creating custom template tags and filters
Django offers a variety of built-in template tags, such as {% if %} or {% block %}. You have used several in your templates. You can find a complete reference of built-in template tags and filters at https://docs.djangoproject.com/en/2.0/ref/templates/builtins/.
However, Django also allows you to create your own template tags to perform custom actions. Custom template tags come in very handy when you need to add a functionality to your templates that is not covered by the core set of Django template tags.
推薦閱讀
- 物聯(lián)網(wǎng)(IoT)基礎(chǔ):網(wǎng)絡(luò)技術(shù)+協(xié)議+用例
- 中小型局域網(wǎng)組建、管理與維護(hù)實(shí)戰(zhàn)
- Wireshark網(wǎng)絡(luò)分析就這么簡(jiǎn)單
- 圖解手機(jī)元器件維修技巧
- WordPress Web Application Development
- 新手易學(xué):新手學(xué)淘寶開店
- INSTANT KineticJS Starter
- 工業(yè)互聯(lián)網(wǎng)創(chuàng)新實(shí)踐
- 一本書讀懂物聯(lián)網(wǎng)
- 移動(dòng)物聯(lián)網(wǎng):商業(yè)模式+案例分析+應(yīng)用實(shí)戰(zhàn)
- 全聯(lián)網(wǎng)標(biāo)識(shí)服務(wù)
- 智慧城市中的物聯(lián)網(wǎng)技術(shù)
- 物聯(lián)網(wǎng)M2M開發(fā)技術(shù):基于無線CPU-Q26XX
- 互聯(lián)網(wǎng)視覺設(shè)計(jì)(全彩慕課版)
- Hands-On Microservices:Monitoring and Testing