Trying backwards compatibility where template rendered, rather than handling in tempalte itself