I am using the Go runtime of Google App Engine and have two modules. I would like to share HTML templates between them but don't the best way.
My modules are organised as below:
src/github.com/myproject/moduleone/app.yaml
src/github.com/myproject/moduleone/templates/base.html
src/github.com/myproject/moduleone/templates/homeone.html
src/github.com/myproject/moduletwo/app.yaml
src/github.com/myproject/moduletwo/templates/base.html
src/github.com/myproject/moduletwo/templates/hometwo.html
In my situation base.html
is the same for moduleone
and moduletwo
. How can I share it between both modules without having to duplicate the file as is done now?
I would like to put base.html
in a directory called src/github.com/myproject/templates
but I believe neither moduleone
or moduletwo
would be able to access the file as it's not in the same or child directory of the module app.yaml
files. Is my only option to symlink the base.html
file between each module's template directory?