Comments
of course the official way is to pass variables using
<flexy:toJavascript
javascript_varname="php_var_name">
<script type="text/javascript">
javascript_varname="the default";
</script>
</flexy:toJavascript>

So that templates can be tested independantly of the renderer..

(otherwise use XMLUrlRequest to fetch data)

But I guess there should be some way to write generated Javascript.. perhaps
<script type="text/javascript" flexy:code="{myjscode():h}">
#1 Alan (Link) on 2004-08-03 02:24
of course the official way is to pass variables using


javascript_varname="the default";



So that templates can be tested independantly of the renderer..

(otherwise use XMLUrlRequest to fetch data)

But I guess there should be some way to write generated Javascript.. perhaps


ohh - I hate smart comment systems :-)
#2 Alan (Link) on 2004-08-03 02:26
Sorry for the inconvenience, Alan.

I would of course prefer that Flexy would step seemlessly into blocks :-)
#3 Mike on 2004-08-03 11:06
The author does not allow comments to this entry