[TYPO3-mvc] Including dynamic JavaScript using Tx_Fluid_View_StandaloneView [solution]

Steffen Müller typo3 at t3node.com
Tue Dec 14 10:45:27 CET 2010


Hi Michiel,

On 11.12.2010 20:40 Michiel Roos [netcreators] wrote:
>
> The downside to this approach is that fluid has a hard time with braces
> in templates. This is of course because JS also uses those braces a lot.
>
> My solution is to replace all the { in the JS with: {openingBrace} and
> all the } with {closingBrace}. And then all is fine
>

I'd rather like to see it the other way round. Leaving { and } unparsed 
and use alternative delimiters for fluid. For example: ###blog.title### 
? *lol*
Could this be achieved by using some kind of JS viewHelper?

-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Microblog:  http://twitter.com/t3node



More information about the TYPO3-project-typo3v4mvc mailing list