forked from I2P_Developers/i2p.www
Added a macro to simplify inserting site urls
This commit is contained in:
5
i2p2www/pages/global/macros
Normal file
5
i2p2www/pages/global/macros
Normal file
@@ -0,0 +1,5 @@
|
||||
{%- macro site_url(path=None) -%}
|
||||
{%- if path -%}{{ url_for('site_show', lang=g.lang, page=path) }}
|
||||
{%- else -%}{{ url_for('site_show', lang=g.lang) }}
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
Reference in New Issue
Block a user