On Aug 5, 4:14 pm, "Bret Lester" <[EMAIL PROTECTED]> wrote:
> I am thinking about using Rhino for serving dynamic HTML pages where i can
> do things like the following:
>
> <table>
>   <% for(var i=0; i < 100; i++) { %>
>   <tr>
>     <td><%=someArray[i]%></td>
>   </tr>
>   <% } %>
> </table>
>
> Does anyone have suggestions on how this should be done. It would be easy
> enough to create a parser independent of the Rhino engine, which would
> convert the above to something like this:
>
> print('<table>');
> for(var i=0; i < 100; i++) {
> print('<tr>');
>   print('td');print(someArray[i]);print('</td>');
> print('</tr>');
> print('</table>');
>
> However, can anyone suggest a better/more efficient approach? For instance,
> can I extend the parser somehow to do this? I would appreciate any advice.
>
> Thanks,
> Bret

I realize that you are not specifically asking for a JS web Framework,
but have you checked out Helma (server-side rhino)? http://www.helma.org.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to