put view into slug if we have it
move die over format earlier, so that we're not left with an empty temp dir