Actually, Myna does something very similar to this as well via an adaptation of ExtJS's Template and XTemplate objects: http://www.mynajs.org/shared/docs/js/libOO/files/Template-sjs.html
On Dec 7, 2:14 pm, Keith <[email protected]> wrote: > Wow... I was looking forward for such a thing in Rhino. However, not > being a Rhino expert I ended up using println() statements. This will > be a welcome addition. Wouldn't borrowing syntax from XQuery instead > of JSP be much neater? Some thing like: > > function main() > { > return <html> > <body> > for (var i=0; i<10; ++i) > <div>{i}</div> > </body> > </html> > > } > > var xhtmlNode=main(); > {xhtmlNode} _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
