-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Persistence of *.html.py file in temporary directory #327
Projects
Comments
hi there - mako uses the last modification time of the template file + the py file to determine if a recompile is needed. the code that does this is here: https://github.com/sqlalchemy/mako/blob/master/mako/template.py#L404 so check the modification time of your .py file is not perhaps in the future relative to your machine's clock, or something like that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: