feat(modal): add support for contentTemplate (fixes #339)