[twdev] Re: require("...") in a js macro ?

2018-07-21 Thread FrD
Hi PMario, Most of the time I prefer to define a function this way (in particular for a library) : var myUtilFunction = function(a,b,c, ..) { } Regards FrD Le samedi 21 juillet 2018 10:46:14 UTC+2, PMario a écrit : > > On Friday, July 20, 2018 at 10:32:07 PM UTC+2, FrD wrote: >> >> >> So

[twdev] Re: require("...") in a js macro ?

2018-07-21 Thread FrD
Hi, Sorry, I found a typo in my Utils.js tiddler : I wrote export. ... instead of export*s*. ... My bad. Everything's fine now. Regards FrD Le vendredi 20 juillet 2018 22:32:07 UTC+2, FrD a écrit : > > Hi, > > I've written two js macros, and part of the code is the same. > > So I've put this

[twdev] Re: require("...") in a js macro ?

2018-07-21 Thread PMario
On Friday, July 20, 2018 at 10:32:07 PM UTC+2, FrD wrote: > > > So I've put this part in a function (say : myUtilFunction) in another > tiddler (say : Utils.js, application/javascript, and module-type : > library). At the end : exports.myUtilFunction = myUtilFunction; > Did you define