i'm trying to render a template that should output a javascript tag with some dynamic content within
the js.

the solution i found so far was

| //<![CDATA[
| function foo(){
- foreach( stuff; stuffs )
	|= stuff
|	  }
| //]]>
| </script>

is there a better solution
and secondly rendering this template yields an empty newline in the beginning, can it be removed?