Move info loop into template

I'd like to be able to add custom templates and not have to reinvent
everything.