update app/rendr.js
update app/rendr.js

— add segments function to parse filename for namespacing
— add `tmpl` object wrapper to namespace metadata
— removed metadata variables slug and navTitle. no longer needed. they
were hacks anyway.
— added option to readFile to chose which type of basename to generate

akileez/rendr