Use render_template method from base packager.
Run erb in trim mode '-' to omit blank lines ending in '-%>'.