bruno....@gmail.com
unread,Jul 10, 2009, 4:45:57 PM7/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Embedded JavaScript
Hi there,
Thaks for this lib. I´m integrating some php frameworks here for our
company architecture and I found EJS on the net. Since I use
jsonschema for defining my calls it´s a very nice toll I can use. When
I define an json schema type, it can be an "simple" type, an array, an
object, etc...
But I only see a way of passing objects to ejs. Is there a way to pass
an array and loop through it, without having to create an extra object
arround it ? It would be very nice to have something like a root value
to use on this cases. That is a small detail, but it represents a lot
to me in terms of responsability of the layers. Why? Because I get
data from the server, send it to the view and the view knows how to
show it. In this point of view, the view is the only responsible to
know the data type.
Is there a way to get this root data?