Hello to all.
Looking at a qooxdoo project directory structure, I think I can make a
sugestion about it.
The source code of a project is in source/class/{project_name}/.
In the classes namespaces, {project_name} is the root namespace. I've never
seen ay project with another directory in source/class (in fact I've never
seen much qooxdoo projects :-)). Is this directory unless?
On the other hand, there are projects like qxtransformer which transform a
non-qooxdoo file (xml, in qxtransformer's case) in a qooxdoo.js file.
For example, if I have a file named project_name/admin/MainWindow.xml,
qxtransformer will transform it in project_name/admin/MainWindow.js. But
this file is unless to the programmer, because only the MainWindow.xml is
important. MainWindow.js is a temporary file, a junk.
My idea is create multiple-roots to the application. Why? In qxtransformer
case, when you "transform" the file
source/class/project_name/admin/MainWindow.xml, it will be created a file
source/class/{qxtransformer_generated}/admin/MainWindow.js.
In the config.json you put a new var with the roots:
PROJECT_ROOT: ["project_name","qxtransformer_generated"]
If there are two files named source/class/{project_name}/admin/MainWindow.js
and source/class/{qxtransformer_generated}/admin/MainWindow.js, qooxdoo will
choice the first to represent the class "project_name.admin.MainWindow",
because "project_name" has a higher priority over "qxtransformer_generated".
I don't know if the idea is good, but it can allow new frameworks over
qooxdoo. For example, If a want to create a new declarative language which
creates qooxdoo code (based on json, for example), it will be easier.
And now I'd want to know what you think about this idea (and sorry for my
English. I'm bBrazilian, so English isn't my native language).
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel