Oh! So that's how you do it. Is there a developers tw that would have this? Or would it go somewhere on TIddlywiki.com?
Thanks! Mark On Wednesday, November 26, 2014 12:53:04 AM UTC-8, Jeremy Ruston wrote: > > Hi Danielo > > If your plugin needs to create global variables you should do so in the > $tw namespace. For example: > > $tw.plugins.danielo515.mysuperplugin.MY_CONSTANT > > You'd create the global with something like this: > > $tw = $tw.plugins || {}; > $tw.plugins.danielo515 = $tw.plugins.danielo515 || {}; > $tw.plugins.danielo515.mysuperplugin = > $tw.plugins.danielo515.mysuperplugin || {}; > $tw.plugins.danielo515.mysuperplugin.MY_CONSTANT = > "$:/mycomplicatedtiddlertitle" > > Best wishes > > Jeremy. > > > -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.