[Xerte-dev] Re: Shared libraries

Pat Lockley patrick.lockley at googlemail.com
Mon Nov 12 11:13:28 GMT 2012


How wordpress does it is you can say in PHP

load_scripts("jquery","tinyMCE") and it loads core files - if they are
updated and your code fails, you need to keep your code up to date. A sort
of tough luck story.

I think core is better - but I prefer 2's neatness in terms of support and
so on.

is Xenith using tinymce?


On Mon, Nov 12, 2012 at 11:06 AM, Julian Tenney <
Julian.Tenney at nottingham.ac.uk> wrote:

> I thought you would use the [root]/lib by default, otherwise use
> templatePath/common?****
>
> ** **
>
> Developers will want to load their own libraries at times, which are
> template specific, so that use case is /common. It makes sense to have a
> set of central libraries that we all know and use: I can think of jQuery,
> jQueryUI, createJS and associated, popcorn.js. It would be **better** if
> folk used the core set, rather than introduce new libraries that do
> essentially the same thing.****
>
> ** **
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 12 November 2012 11:01
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: Shared libraries****
>
> ** **
>
> Yes, but then you've opted for 2, unless when you install the template you
> put libraries in the shared folder. And then when you install a second
> template what if those libraries exist, or, what if the library is a more
> modern version and it breaks the other one?****
>
> ** **
>
> On Mon, Nov 12, 2012 at 10:59 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:****
>
> But if the dependencies are distributed with the template, it would be OK?
> ****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 12 November 2012 10:58****
>
>
> *To:* For Xerte technical developers****
>
> *Subject:* [Xerte-dev] Re: Shared libraries****
>
>  ****
>
> Yes, the *we* which is a developer can do so.
>
> But if we think "app store" then the average user might have to go get X
> and Y and Z before a template will work, and the template needs to support
> a list of dependencies
>
> So both are doable - it just means problems.****
>
>  ****
>
> On Mon, Nov 12, 2012 at 10:53 AM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:****
>
> Can’t we do both? Use the default libraries if they suit, otherwise load
> up a custom one?****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 12 November 2012 10:52
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Shared libraries****
>
>  ****
>
> Hello,
>
> At present we have a library folder in 1.8 which contains bits of PHP.
>
> In the root we have mapstraction and some other folders which aren't
> really "core" they just sit there.
>
> I have three new templates, and there are "common" JS libraries between
> them.
>
> 1) Putting the shared libraries into a library folder would save space
> 2) but giving each template it's own version makes them self-contained.
>
> I prefer 2
>
> Thoughts
>
> Pat****
>
>  ****
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham. ****
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system: you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation. ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.*
> ***
>
>  ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
> ****
>
> ** **
>
>  This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system: you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121112/6c9ba0f5/attachment-0001.html>


More information about the Xerte-dev mailing list