basic template compiling
make nav into bucket
several refactorings around computed pattern names