A new way for the compiler
I have some good news about the archetype's compiler : I've decided to totally changed my way. Like the archetype's core is able to resolve dependencies itself, it's a good idea to use it in the compiler.
I look at HtmlUnit (http://htmlunit.sourceforge.net) which models a browser in a Java programs. With it, I can execute archetype and get back variables of the configuration from the browser's memory. I also use a system of javascript's alert, present only in the compiler, in order to obtain the good sequences of modules and components.
So, the bundle of the modules is done and I currently work on components. I also think about some solutions to merge css and templates.
I change my mercurial hosting and you can get a development version here : http://bitbucket.org/Zed/archetype/. This one is able to bundle modules, components and soon templates.


0 commentaires:
Enregistrer un commentaire