You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default ctor for Environment sets global_path to "./" ( environment.hpp:40 ) . Which breaks absolute paths in calls to render_file(..) or rather parse_template(..).
Breaking absolute paths is quite unexpected behavior for a default, especially because it is not documented.
I suggest to change the default to "" (empty string) this still allows relative paths and does not break absolute paths.
The text was updated successfully, but these errors were encountered:
pantor
changed the title
Fix default for Environmen global_path
Fix default for Environment global_path
Feb 19, 2019
The default ctor for Environment sets global_path to "./" ( environment.hpp:40 ) . Which breaks absolute paths in calls to render_file(..) or rather parse_template(..).
Breaking absolute paths is quite unexpected behavior for a default, especially because it is not documented.
I suggest to change the default to "" (empty string) this still allows relative paths and does not break absolute paths.
The text was updated successfully, but these errors were encountered: