DRY up the sinatra templates