A filter is fine. I just don't want to build it in an html template.