#643338 ikiwiki: ships with convenience copy of jquery

#643338#5
Date:
2011-09-27 12:12:51 UTC
From:
To:
Ikiwiki ships with a convenient copy of jquery.

Instead, it should us the spearately packaged jquery.


Regards,

 - Jonas

#643338#10
Date:
2011-09-27 12:37:39 UTC
From:
To:
Jonas Smedegaard wrote:

Yes, but I would have to use a symlink, and ikiwiki refuses to use
symlinks for security reasons, so this would need a complex special case
in security-sensative code.

#643338#15
Date:
2011-09-27 13:06:11 UTC
From:
To:
Right now I use this in an Apache2 snippet:

Alias /ikiwiki/openid/jquery.js /usr/share/javascript/jquery/jquery.min.js

That doesn't require any symlinks anywhere.

If you depended on the packaged jquery you could instead (for Debian
use) hardcode base path /javascript/ established by javascript-common.

Alternatively you could hardcode base path /usr/share/javascript/ and
recommend (in documentation and perhaps by offering a snippet) a
corresponding Apache2 alias - that would make it work also offline.

Even better would be to make it a configurable path/URL.  That has
another use: Some (others than me) prefer to link against the Google
hosted jquery as that is likely to already be in browser cache so faster
to load.


 - Jonas