-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate templates into bindata optionally #314
Conversation
Why not just use |
@lunny as said, it's work in progress. If we want to add the func map into the same package I can do that in the end |
Since we have bundled all required dependencies via the vendoring we don't need to provide these checks anymore. We make sure to have the correct versions with that.
Since the -prefix option of go-bindata seems to be broken I'm forced to rewrite the paths of the templates with sed.
It looks like custom templates are not used when building with Tried with |
Looks like that, but nothing we can fix within Gitea as it seems to be an issue of https://github.com/go-macaron/bindata |
The mail templates are always overwritable as we do it manually to read the templates. |
If I read it correctly TemplateFileSystem allows you to define
an handler, so I guess a custom handler might implement the custom
directory seek.
|
Not tested but the code: |
code LGTM |
I have created this pull request to get early feedback. To finish this PR I still need to figure out how we can use the embedded templates for the mailer. Looks like the used macaron.TemplateSet doesn't like bindata.
Partially obsoletes #74.