Pre-render templates to allow selection of layout from template body

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed view linked media ordering

Signed-off-by: Tom Wright <tom@inflatablecookie.com>