turning templates into custom templatetags

first step