Add macro tag_to_id
This commit is contained in:
parent
92dce90753
commit
aaaaa29d8e
@ -49,6 +49,15 @@
|
||||
<!--% iso8601_date.format(date_to_format) %-->
|
||||
<!--% END %-->
|
||||
|
||||
<!--% MACRO tag_to_id(tag, is_index) BLOCK %-->
|
||||
<!--% tag = tag.replace('\s+','_') %-->
|
||||
<!--% IF is_index %-->
|
||||
<!--% tag.upper %-->
|
||||
<!--% ELSE %-->
|
||||
<!--% tag.lower %-->
|
||||
<!--% END %-->
|
||||
<!--% END %-->
|
||||
|
||||
<!--% MACRO absolute_url(base, path) BLOCK %-->
|
||||
<!--% UNLESS base.empty %-->
|
||||
<!--% UNLESS base.substr(-1) == '/' %-->
|
||||
|
Loading…
Reference in New Issue
Block a user