On 11-09-27 at 08:37am, Joey Hess wrote: > Jonas Smedegaard wrote: > > Ikiwiki ships with a convenient copy of jquery. > > > > Instead, it should us the spearately packaged jquery. > > 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.
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 -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: Digital signature

