Persistence of *.html.py file in temporary directory
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 459
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Environment Linux, Mageia 7 x86_64
Mako assumes incorrectly that if a .html.py file exists in the specified temporary directory:
tmpl = Template(filename='weather.html', module_directory='/tmp/mako_modules')
that the template does not need to be re-compiled. I have been testing a development version of a python script alongside the production version, with a slight difference in the template. Mako just uses whichever version was last compiled.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Mako's Template handling for filename='weather.html' and module_directory='/tmp/mako_modules', then reproduce the report by compiling two template versions that share the temporary directory. Trace how the existing .html.py file is treated and verify that the current template is not incorrectly reused when its source differs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100