Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为模板标签传递当前年份、月份和日期。我该怎么做呢?
{% foo current_year current_month current_day %}
'foo' 是我的模板标签。它接受三个参数。即年、月、日。