Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion JDocument Registering JS Files for Easy Dependency Management
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Donald Gilbert  
View profile  
 More options Sep 8 2012, 1:25 am
From: Donald Gilbert <dilbert4l...@gmail.com>
Date: Fri, 7 Sep 2012 22:25:17 -0700 (PDT)
Local: Sat, Sep 8 2012 1:25 am
Subject: Re: [jplatform] JDocument Registering JS Files for Easy Dependency Management

Trying to understand your position. Could you elaborate a little on
possibly setting script dependencies in a manifest?

What I can think of is maybe a field that basically states what scripts
this component requires on which views. Something like

<views>
    <view name="list">
        <script name="jquery" src="{hosted CDN jquery src}" />
        <script name="datatables" src="{hosted CDN datatables src" />
    </view>
    <view name="detail">
       etc...
    </view>
</view>

Am I understanding that right? It seems to me that might be a little
complicated (unless I'm way off base) to manage named dependencies across
components.

On Friday, September 7, 2012 8:04:09 PM UTC-5, Niels Braczek wrote:

> Am 07.09.2012 17:28, schrieb Donald Gilbert:

> > What I would like to propose and gauge interest for is extending the
> > JDocument class with the following methods:
> >     registerScript($name, $path, $dependencies = null, $overwrite =
> false);
> >     unregisterScript($name);

> In general, I think dependency management is a good thing to do.
> I would though prefer a kind of manifest file solution, so the
> dependency description is separated from the source code.

> Regards,
> Niels

> --
> | http://barcamp-wk.de   ·   2. Barcamp Westküste    Frühjahr 2013 |
> | http://www.bsds.de   ·   BSDS Braczek Software- und DatenSysteme |
> | Webdesign · Webhosting · e-Commerce · Joomla! Content Management |
>  ------------------------------------------------------------------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.