With this code I'm getting Latte\RuntimeException Including block foo with content type HTML into incompatible type HTML/HTML. If I get rid of {contentType html} RuntimeException is gone but code inside <script> is not interpreted as latte. I tried to play with it but no luck. Sometimes I was even getting HTML/RAW/HTML into incompatible type HTML/HTML.
Version: 3.0.13
Steps To Reproduce
https://fiddle.nette.org/latte/#324e7f85db
Bug Description
With this code I'm getting
Latte\RuntimeException Including block foo with content type HTML into incompatible type HTML/HTML
. If I get rid of{contentType html}
RuntimeException is gone but code inside<script>
is not interpreted as latte. I tried to play with it but no luck. Sometimes I was even gettingHTML/RAW/HTML into incompatible type HTML/HTML.
Expected Behavior
Should work. It works on 3.0.9.