[OpenAjaxIDE] <library> src path to a file ...

Jon Ferraiolo jferrai at us.ibm.com
Fri Aug 28 15:18:22 PDT 2009


+1. Good thinking.

Jon




                                                                                                                                                  
  From:       Kin Blas <jblas at adobe.com>                                                                                                          
                                                                                                                                                  
  To:         "ide at openajax.org" <ide at openajax.org>                                                                                               
                                                                                                                                                  
  Date:       08/28/2009 03:08 PM                                                                                                                 
                                                                                                                                                  
  Subject:    Re: [OpenAjaxIDE] <library> src path to a file ...                                                                                  
                                                                                                                                                  
  Sent by:    ide-bounces at openajax.org                                                                                                            
                                                                                                                                                  





The more I think about this, the more I think including an @type is much
cleaner than differenciating between  a file and directory by a trailing
slash. With the advent of CSS animations etc, I’m thinking a library could
very well be a CSS file.

<!-- When not specified default value for @type would be “folder” -->
<library src=”foo” version=”1.0” />

<!-- Equivalent to the previous example, but with @type specified. -->
<library type=”folder” src=”foo” version=”1.0” />

<!-- Only library tags with a type of “folder” are allowed to have require
tags inside them. -->
<library src=”foo” version=”1.0”>
                <require type=”javascript” src=”includes/foo.js” />
                <require type=”css” src=”css/foo.css” />
</library>

<!-- A library can also point to a file, but the type must be specified.
-->
<library type=”javascript” src=”includes/foo.js”  version=”1.0” />
<library type=”css” src=”css/animations.css” version=”1.0” />

--== Kin ==--

From: Kin Blas
Sent: Friday, August 28, 2009 11:47 AM
To: ide at openajax.org
Subject: [OpenAjaxIDE] <library> src path to a file ...

So in the last meeting it was decided that @src on a library tag could
point to a file, and in the examples I’ve heard  Jon mention,  gives, he
uses jquery.js:

<library src=”includes/jquery.js” version=”1.7.2” />

Is the IDE to assume that if the @src is a file path (as opposed to a
directory path), that the file is a JS file? That is, will the spec call
that out as the only supported file type for a library @src path? Or do we
need to introduce a @type attribute for the <library> tag?

--== Kin ==--

 _______________________________________________
IDE mailing list
IDE at openajax.org
http://openajax.org/mailman/listinfo/ide

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/ide/attachments/20090828/b0a1e278/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://openajax.org/pipermail/ide/attachments/20090828/b0a1e278/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://openajax.org/pipermail/ide/attachments/20090828/b0a1e278/attachment-0003.gif 


More information about the IDE mailing list