Skip to content

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

Description

@Daaarkling

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions