> <script> > write > '"+++[.] [[notes"+tiddler.title+"]]"+"<<tiddler > "+"[[notes"+tiddler.title+"]]"+"\>\>==="' > </script> > > the error I get is: > ReferenceError: write is not defined
There are several ways to render the output from an inline script. The easiest method is to simply *return* the wiki-formatted text that you want to have rendered, like this: <script> return "+++[.][[notes"+tiddler.title+"]]<<tiddler [[notes"+tiddler.title+"]]>>==="; </script> Note: for simple substitutions of values such as "tiddler.title", you could also just use the <<tiddler>> macro with a computed parameter... First, create the tiddler to be transcluded (e.g., [[AddNotes]]), with content like this: +++[.][[notes$1]]<<tiddler [[notes$1]]>>=== Then, embed it in other tiddler content like this: <<tiddler AddNotes with: {{tiddler.title}}>> When rendered from a tiddler called "FooBar", this will produce: +++[.][[notesFooBar]]<<tiddler [[notesFooBar]]>>=== QED. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---