Check for existing issues
Describe the feature
I looked through previous issues and found similar things but not exactly this. For example, for Hugo etc. templates I think in the past you've suggested rendering the static site first. With Django templates, but also Jinja, etc. this isn't really an option.
I thought of the following workarounds:
- Strip all template language stuff from the templates and run vale against that, but seems very hacky.
- Write tests to render each template and run vale against this using
--built, would be way too slow, was planning this as a pre-commit hook.
- Inline directves, looks awful, doesn't scale well, adds noise.
- Run against the gettext catalogue instead - works for my current project since we have i18n enabled, but would miss the comments in the files.
I did manage to look through the code and get something that seems to work well without any obvious footguns without much code - but I get the feeling from reading older issues that this is more of a philosophical choice?
Could you let me know if you'd be interested in a contribution here, or alternatively, if there's a workaround I haven't thought of?
Check for existing issues
Describe the feature
I looked through previous issues and found similar things but not exactly this. For example, for Hugo etc. templates I think in the past you've suggested rendering the static site first. With Django templates, but also Jinja, etc. this isn't really an option.
I thought of the following workarounds:
--built, would be way too slow, was planning this as a pre-commit hook.I did manage to look through the code and get something that seems to work well without any obvious footguns without much code - but I get the feeling from reading older issues that this is more of a philosophical choice?
Could you let me know if you'd be interested in a contribution here, or alternatively, if there's a workaround I haven't thought of?