2 title: Javascript & Flexy
8 If you ever used [Flexy](http://pear.php.net/package/HTML_Template_Flexy),
9 which I consider a really great TE, you have most probably already stumbled
10 across Flexy's inability to step into `<script>` blocks.
12 A really easy method to overcome this problem is to define scriptOpen and
13 scriptClose properties in your base objects outputted by Flexy:
18 var $scriptOpen = "\n<script type="text/javascript"> <!--\n";
19 var $scriptClose = "\n//--> </script>n";
20 var $scriptData = "var foo = 'bar';";
24 Outputting above object with the following template wont work:
28 <script type="text/javascript">
44 ...works like a charm... ;)
46 Alan said, Flexy wont step into Javascript blocks because that caused
47 massive problems with the Smarty convertor...