Toni Lamar wrote:
> I don't believe there's a need for an Element super class
Agreed :)
> This should not be a problem for imports if something like the following
> would be used:
> Page (or Util) #addImport(String path)
> Since the path would be "pure", e.g. "/assets/mystyle.css" (even without the
> context when added),
> so always very fast to check for duplicates, versions (select
> packed/obfuscated version), etc.
>
> For "includes" (mostly JS includes), I like to use most of the time the
> Velocity include:
> #include("$context/assets/mySnippet.js)
This won't work for custom Controls as they don't always have an
associated template.
Another issue I ran into was that includes could be checked for
uniqueness, especially for Controls. However Page includes won't have
to check for uniqueness as they are application specific. Using
objects instead of strings allows one to use methods on the Object to
set whether the include should be unique or not. Other advantages of
an Object is to add API for conditional includes, commented script
content etc.
> This has the advantage that there's not need to escape in that snippet
> something, and the IDEs are
> much smarter with "pure" JS files than with direct includes.
Yep I've been looking at JQuery Controls and placing the JS in their
own files is much easier to work.
> OT Delphi/VB: it seems that it is pretty simple to add in NetBeans to the
> pallette arbitrary controls (e.g. to work visually). I just started reading
> this one:
>
http://tinyurl.com/5px83y> and ch15 is all about this.
Nice. I use Netbeans myself and a Click Netbeans plugin would be very
welcome :)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Click-user mailing list
Click-user@...
https://lists.sourceforge.net/lists/listinfo/click-user