Skip to content
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

send JinjaTemplateVars through to template on config file load always. #159

Merged

Conversation

madeline-scyphers
Copy link
Owner

JinjaTemplateVars were only being sent through if calling render_template_from_path not if calling render_template directly. the load_jsonlike functions used render_template because the loaded the config file into a str and then rendered. So they didn't get the jinja template vars.

JinjaTemplateVars were only being sent through if calling `render_template_from_path` not if calling `render_template` directly.
the `load_jsonlike` functions used `render_template` because the loaded the config file into a str and then rendered.
So they didn't get the jinja template vars.
@madeline-scyphers madeline-scyphers added the bug Something isn't working label Oct 26, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #159 (379f491) into develop (0b85da6) will increase coverage by 0.01%.
Report is 1 commits behind head on develop.
The diff coverage is 88.00%.

@@             Coverage Diff             @@
##           develop     #159      +/-   ##
===========================================
+ Coverage    81.57%   81.59%   +0.01%     
===========================================
  Files           29       29              
  Lines         2225     2238      +13     
  Branches       417      419       +2     
===========================================
+ Hits          1815     1826      +11     
- Misses         269      270       +1     
- Partials       141      142       +1     
Files Coverage Δ
boa/wrappers/wrapper_utils.py 88.66% <100.00%> (+0.23%) ⬆️
boa/template.py 82.75% <92.30%> (+5.48%) ⬆️
boa/controller.py 90.54% <50.00%> (-2.42%) ⬇️

@madeline-scyphers madeline-scyphers merged commit c1efe01 into develop Oct 27, 2023
13 checks passed
@madeline-scyphers madeline-scyphers deleted the bugfix/fix-jinja-env-vars-not-being-templated-right branch October 27, 2023 16:44
@madeline-scyphers madeline-scyphers mentioned this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant