Source

fastpt / kajiki / perf / genshi_bench / jinja2 / templatetags / bench.py

Full commit
1
2
3
4
5
6
7
8
from django.template import Library, Node, resolve_variable
from django.utils.html import escape

register = Library()

def greeting(name):
    return 'Hello, %s!' % escape(name)
greeting = register.simple_tag(greeting)