I need to add a <br/> after each character in a string which I'm passing into the template. While one way of doing it would involve doing it before it is passed into the template (i.e. in the Python code), I'm wondering if it is possible to do it in the actual template.
Or would I be better off creating a helper function and invoking it from the template, and if so, how would I import that function/module into the template.
The one thing I want to avoid is mixing HTML bits with the view code so adding the <br/>s in the view should only be the last resort.