[RFR] Add custom template support

- [x] Allows to use custom template
- [x] Add tests
- [x] Update doc