DJANGO的TAG分為三類:
• simple_tag : Processes the data and returns a string
• inclusion_tag : Processes the data and returns a rendered template
• assignment_tag : Processes the data and sets a variable in the context
blog_tags.py
latest_posts.html
base.html
無css層展示
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuEGNwEmZxMTOjRWMhJmNyQ2YjRzNmlTMlRmZwEWMiJGZfdWbp9CXt92Yu4GZjlGbh5SZslmZxl3Lc9CX6MHc0RHaiojIsJye.png)