Hi TheDiveO > But: is there another way ot hack to get the require working as needed? One > bad idea that occured to me is simply adding an alias to > $tw.modules.titles... Any better ideas?
The core Jasmine plugin has the same problem and solves it with a fairly hefty hack: it executes the plugin modules with a special context that includes a custom override of the require() function: https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/jasmine/jasmine-plugin.js <https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/jasmine/jasmine-plugin.js> Perhaps you can do something similar? We could also consider pulling the guts of the technique into a generic $tw.utils function. Best wishes Jeremy. > > Best regards, > TheDiveO > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tiddlywiki+unsubscr...@googlegroups.com > <mailto:tiddlywiki+unsubscr...@googlegroups.com>. > To post to this group, send email to tiddlywiki@googlegroups.com > <mailto:tiddlywiki@googlegroups.com>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/1e9464ca-fbda-40c7-aeed-8c147ca95260%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/1e9464ca-fbda-40c7-aeed-8c147ca95260%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/F938B97E-2B4B-482B-A87B-FE527456AE3D%40gmail.com. For more options, visit https://groups.google.com/d/optout.