Andrew Robinson schrieb:
But the problem persists, how are we going to improve the readability of the
rendered code and how do we maintain the much needed speed on component
level?
A very good question. I wonder if there is a way to get JSP-like
runtime compilation of HTML template code and have that compiled code
get as close to being inside the renderer as possible.
Well it is possible, I did something similar with groovy with dynamic
classloading a while ago.( I basically got the idea of inline templating
from groovy which has such mechanisms on language level.)
But the issue back then was, I had to replace the classloaders on the
fly with realtime classloaders which were able to reload the sourcefiles
and push them through a compiler cascade and weave proxies around it
(well in case of groovy you just had to push the files into the interpreter)
which do the check if the files have changed and then reload their
delegates on the fly if needed.
Howeverl calling methods from this stuff either needs fixed apis or
introspection calls, and you have to mess around with the classloaders!