support for templating app and build process.
update to allow wrapping templates from real app partial used in build.