Code of inline viewhelper shown as string?!

Hello, everybody. I have a somewhat strange problem (Neos Flow 6.0.8).
I’m rendering a partial:

<f:render partial="a\b" />

My partial itself (b.html) looks like this:

<audio id="sound_error">
    <source src="{f:uri.resource(path: 'Sounds/error.mp3')}" type="audio/mpeg">
    Your browser does not support the audio element.
</audio>

The rendered HTML code looks like this:

<audio id="sound_error">
    <source src="{f:uri.resource(path: 'Sounds/error.mp3')}" type="audio/mpeg">
    Your browser does not support the audio element.
</audio>

The inline viewhelper is output as a normal string again. Is that a bug or am I missing something basic?

Thank you!

Tobias

I don’t see you missing something basic. Normally, if the inline ViewHelper is output as string, the syntax is not correct. Did you try to rewrite the whole src string? It might be that invisible characters might break the parsing.

Thank you Lorenz for your prompt reply.

I did a few more tests and found out the following:

At the end of the partial I’m writing:

<script type="text/javascript">
     $(document).ready(function() {
 ...
     });
</script>

When I remove this Flow parses “{f:uri.resource(path: ‘Sounds/error.mp3’)}” correctly. Is this strange behavior known?

Thank you!

Hi Tob,

you need to wrap JavaScript in Fluid Templates in CDATA.
See here https://stackoverflow.com/questions/17696105/how-to-escape-curly-bracket-in-typo3-fluid-template#27982804

Hope that helps.

Thank you very much Sebastian! I learned a lot!