sergek
11-18-2005, 04:59 PM
I'm trying to use Laszlo as part of a CMS system. While it's very nice to be able to generate LZX from a JSP or servlet or something, it's very hard to use other dynamic content for compile-time resources. Right now Laszlo can only handle physical file objects, making it hard to assemble compile-time views.
For example, I'll have a banner for my website which uses 3 or 4 images. This banner will be used over and over again, and so I just want a single download of it including those images rather than have to grab them at run-time. However if those images are served out of a database and resized using some dynamic servlet code, it's impossible AFAIK to include those as compile time resources. I have to give the full URL and have them load separately.
I looked into the compile code, both the command line lzc utility as well as how the LZXServlet works, and the entire compile process involved the java.io.File object. This seems like a massive refactoring to a more useful abstraction for the compiler media cache and whatever else.
Any thoughts on how to workaround this?
For example, I'll have a banner for my website which uses 3 or 4 images. This banner will be used over and over again, and so I just want a single download of it including those images rather than have to grab them at run-time. However if those images are served out of a database and resized using some dynamic servlet code, it's impossible AFAIK to include those as compile time resources. I have to give the full URL and have them load separately.
I looked into the compile code, both the command line lzc utility as well as how the LZXServlet works, and the entire compile process involved the java.io.File object. This seems like a massive refactoring to a more useful abstraction for the compiler media cache and whatever else.
Any thoughts on how to workaround this?