#223 Add support for custom template substitutions.