On Friday 08 Apr 2011 15:36:23 Robert Hailey wrote: > > On 2011/04/06 (Apr), at 4:16 AM, Pouyan Zachar wrote: > > > [freenet.10.technomation] > >> Struts is a large, complex and largely superseded framework (by > >> JBoss, Spring etc) - the .jar is several megs in size, requiring > >> considerable configuration. Given the amount of HTML in Freenet, > >> then one would think a lightweight templating engine might be more > >> in order: Apache Velocity for example. [ http:// > >> velocity.apache.org/ ] > >> > >> Velocity is ~300K, easy to configure and could run in a single > >> servlet. Content could be kept in HTML and other content files that > >> could be designed / built / tested outside of the container in > >> regular tools. > > > > I must agree with the fact that Struts and similar frameworks (Wicket) > > are too huge to be delivered with Freenet. > > I have seen struts in action... DON'T DO IT! :) > > IMO it would be *alot* of work to port, for a negative benefit (it > would be bigger, slower to start, slower to run, harder to maintain...). > > I (for one) like the HTMLNode mechanism, even if it is a bit > 'different' it is a more methodical way of making a web page; and you > never have to worry about closing your tags. It's even theoretically > possible to build the page with multiple threads. > > Surely there is a better way to make it more readable or support > javascript better (if that is the issue). > > HTMLTable table = new HTMLTable(); > > table.tr(); > table.th("Peer Nodes"); > table.tr(); > table.td(new PeerCicle(data)); > > page.add(table); > > ??? > > node.code("<b>insert raw html here</b>");
Bombe's lightweight templating code is quite interesting too. It's actually faster than our current code, but it'd be a fair bit of work to port it. We should discuss this some more. I think Ian has some experience in these things?
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Devl mailing list Devl@freenetproject.org http://freenetproject.org/cgi-bin/mailman/listinfo/devl