Tiled Gallery: From HTML Builder to tempaltes.

Instead of using an HTML Builder, let's separate the presentation and the domain logic even further by taking all the HTML and putting into templates we then require.