Add methodify filter in templates.