http-request-translator
http-request-translator copied to clipboard
Add custom template option
This is a POC for adding a custom template. Currently this is intended to work when no language option is provided .
@dhruvagarwal I am not really fan of this idea for 2 reasons:
- If the user wants to use a custom template, s-he can write it under './templates/'
- If the user has to write the template under './templates/', it would increase the chances for them to create a PR in order to add their templates in the repo (imo).
What do you think? @arunk-s any thoughts on that?
@DePierre I think your idea of writing the templates under a global directory sounds awesome, it will help us further in discovering the ways the users are using our tool, may be discover some bugs in our templates/code may be.
@dhruvagarwal Do you think that you could add unittests for that new feature as well as the source code? That will be very helpful before merging the changes :)
@dhruvagarwal Reading the modification, what happens if the user specifies a custom template bash.py
? Is it overidden by the default one http_request_translator provides?
@dhruvagarwal Do you need more information in order to update your PR regarding the custom template idea?