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

Including block foo with content type HTML into incompatible type HTML/HTML. #356

Closed
Daaarkling opened this issue Feb 7, 2024 · 0 comments

Comments

@Daaarkling
Copy link

Daaarkling commented Feb 7, 2024

Version: 3.0.13

Steps To Reproduce

https://fiddle.nette.org/latte/#324e7f85db

{define foo}
	<p>abc</p>
{/define}

<script type="text/html">
	{contentType html}
	<p n:class="true ? red">ahoj</p>

	{include foo}
</script>

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 getting HTML/RAW/HTML into incompatible type HTML/HTML.

Expected Behavior

Should work. It works on 3.0.9.

@dg dg closed this as completed in 1e1939e Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant