Topic: Prototype Templates and collections in JSON

I'm a bit green with Prototype so I haven't figured out how or if I can evaluate a collection from a JSON object into a template. Take this for example - I have a JSON object for a driver and a collection of his cars. Now I want to evaluate that object as an argument into a template:

driver_template = new Template(
     'The driver, #{name}, has these vehicles: #{show the list of VINs here}'
);

I appreciate any help smile

Re: Prototype Templates and collections in JSON

If anyone else is wondering what the solution is, the better approach is to use Builder from Scriptaculous to build dynamic elements. Check it out here: http://wiki.github.com/madrobby/scriptaculous/builder