22 lines
423 B
Cheetah
22 lines
423 B
Cheetah
<%doc>
|
|
Template engine: Mako
|
|
|
|
Usage:
|
|
|
|
{{% url <site> %}}
|
|
|
|
where <site> is one of 'xmpp', 'mastodon' or 'peertube'
|
|
|
|
Example: {{% url 'mastodon' }} will show the content of MASTODON_URL defined in GLOBAL_CONTEXT of config.py
|
|
</%doc>
|
|
|
|
% if _args[0] == 'xmpp':
|
|
${XMPP_URL}
|
|
% elif _args[0] == 'mastodon':
|
|
${MASTODON_URL}
|
|
% elif _args[0] == 'peertube':
|
|
${PEERTUBE_URL}
|
|
% else:
|
|
Unknown
|
|
% endif
|