from django import template register template Library register simple_

1
2
3
4
5
6
7
8
from django import template
register = template.Library()
@register.simple_tag
def get_rate():
return "bla-bla"