Closed rickecon closed 4 years ago
Hi @rickecon! Andy and I teamed up and found the problem! Inside that giant script tag there is an instance of {%
that jinja is trying to parse. If you insert the raw
jinja tag in djia_npp_mth.html
around the first script tag, jinja leaves the contents alone and the visualization is rendered.
@hayleefay and @asmockler. Perfect. Worked like a charm. You guys are the best. Thank you for digging this out for me. I am not going to push this to the Heroku site yet because I want to tune a couple of things up on the viz. But thanks @asmockler for building me such a great flask
site. AND CONGRATULATIONS ON YOUR BABY.
This issue is resolved with PR #65.
@asmockler and @hayleefay. Let me know if you have any suggestions. I am trying to add this static visualization of the DJIA over the past 15 recessions to the OSE Lab visualizations gallery. I added the Bokeh HTML output file
DJIA_NPP_mth_2020-05-22.html
for my visualization temporarily to the gallery directory of mydjia
branch of my fork of this repository.<script> ... <\script>
commands, I get what I expect when I create a local version of the site usingbin/start
.{{ page_heading( title="DJIA Normalized Peak Plot over last 15 Recessions (1929-2020)", body="Explore the performance of the Dow Jones Industrial Average in the first months of the last 15 recessions (1929-2020). [Updated May 22, 2020]", ) }}
{% endblock %}
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'F'. Jinja was looking for the following tags: 'endblock'. The innermost block that needs to be closed is 'block'.
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'F'.