[pmwiki-devel] PUB dir and javascript

Simon nzskiwi at gmail.com
Sun Mar 22 19:58:02 PDT 2020


Petko

thanks for (all your) responses.

What I was thinking about, rather than those specific recipes was - and
there may be advice about this on the wiki - but I can't see it

If I am a recipe writer

   - skin (recipes) go in the /pub/skins directory
   - recipe css (I guess) goes in the /pub/css directory
   - recipes go in the cookbook directory
   - recipe javascript goes ... ?
   - recipe resources (e.g. graphics) go in /pub/*myrecipe*/

Or as a recipe writer do I create a folder /pub/*myrecipe*/ and put
everything in there?
I'm a sort of a tidy developer and like to have a place for things, and I
can see that more and more recipes will be using javascript, hence the
suggestion

As far as moving forward, should it be considered being worth doing then
yes, the old file becomes orphaned, but perhaps instructions to manually
deleet it would be sufficient

thanks very much

On another note I hope you are keeping safe through the COVID pandemic

regards

Simon

On Sun, 22 Mar 2020 at 23:20, Petko Yotov <5ko at 5ko.fr> wrote:

> LocalTimes is not in the core, if it gets included then its logic will
> go into pmwiki-utils.js.
>
> I'll think about it -- one problem is that moving the file into a
> subdirectory in the core will not move it on existing installations and
> people will end with 2 versions of pmwiki-utils.js. Isn't this worse
> than what happens now?
>
> As the directories where the PmWiki core is installed should not be
> writable by the PHP process, an automatic cleanup cannot be reliably
> implemented.
>
> Petko
>
> On 21/03/2020 05:53, Simon wrote:
> > I'd like to suggest that a new default sub-directory of the Pub dir be
> > added for java script, as there is for CSS and Skins.
> >
> > I see for example localtimes.js and pm-utils.js in the pub dir root
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20200323/ef2773f5/attachment.html>


More information about the pmwiki-devel mailing list