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
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino