Template writer

Let's strategy pattern this mutha. Inject a 'template strategy' that knows how to do things like viewIndex and layout.

Get rid of those annoying 'if's.

Profit.

* Works On My Machine (TM). I may or may not have actually tested it terribly well.