Your script "anew" sounds nice. care to post it?
Also should why do you have to add a hash entry to anew? Should I not be able to just add a template to share/anew?
share/anew/tex/
c/
pmf/
pmo/
.../
Then in each subdirectory have module for that template to handle building it.
Of course there is alwasy the template toolkit.