[Developers] acre.markup.define_browser_var

Philip Kendall philip-freebase at shadowmagic.org.uk
Tue Jul 28 10:22:36 UTC 2009


On Mon, Jul 27, 2009 at 12:07:17PM -0700, Stefano Mazzocchi wrote:
> 
> So, if you want to pass an acre object over to the client side you can 
> simply do
> 
> <acre:script>
>   var a = whatever();
> </acre:script>
> 
> <script>
>   var a = ${JSON.stringify(a)};
> </script>

Works wonderfully, thanks :-)

Cheers,

Phil

-- 
  Philip Kendall <philip at shadowmagic.org.uk>
  http://www.shadowmagic.org.uk/


More information about the Developers mailing list