1 2 3 4 5 6
from django import template register = template.Library() @register.simple_tag def bug_link(bugid): return "<a href=\"https://bugs.archlinux.org/task/"+bugid+"\">FS#"+bugid+"</a>"