[TYPO3-mvc] FLUID and Javascript objects

Julian Kleinhans typo3 at kj187.de
Fri Jul 23 23:20:43 CEST 2010


Hi,

ive found a solution but i dont know if its the best way
<script>
	var test = <f:raw>{</f:raw>
		test: '{f:uri.resource(path: "test/")}'
	<f:raw>}</f:raw>;
</script>


julian


Am 23.07.10 23:12, schrieb Julian Kleinhans:
> Hi list,
>
> how can i write Javascript objects with fluid syntax inside ??
> I have something like this
>
> <script>var test = {test: '{f:uri.resource(path: "test/")}'};</script>
>
> The frontend result is
>
> <script>var test = Array</script>
>
> Ok, one solution is to wrap it with cdata.. but, than the resource is
> plaintext ..
>
> <f:raw> doesnt help too ;(
>
> ideas ?
>
> greetz
> julian



More information about the TYPO3-project-typo3v4mvc mailing list