Infrastructure for templated doc in POD files