Use something like velocity or freemarker to allow for users to provide custom templates for documentation customization.