Usually, I don't make a big announcement about new TiddlyTools
plugins, but I think this one may provide some useful solutions for a
wide range of issues, so... I'd like to introduce:
http://www.TiddlyTools.com/#ExternalTiddlersPlugin
This plugin extends the <<tiddler>> macro syntax so you can retrieve
and wikify content from external files or remote URLs in addition to
tiddlers stored within the document. Simply use a local path/filename
reference, or a remote URL (http://) reference in place of the usual
TiddlerName parameter in the <<tiddler>> macro:
<<tiddler somefile.txt>>
<<tiddler /path/to/file.txt>>
<<tiddler
http://www.somewhere.com/path/to/somefile.txt>>
That's it... the plugin does the rest. If the file or URL can be
read, it's contents are wikified, just as if they came from a tiddler
in the current document!
In addition to reading content from external text files, you can also
retrieve content from individual *tiddlers* contained in external
TiddlyWiki documents. Just list the desired tiddler(s) using a
"permaview" style suffix on the remote document URL:
<<tiddler
http://www.TiddlyWiki.com/#HelloThere>>
If the remote URL is a valid TiddlyWiki document AND the named
tiddler(s) are found, they will be wikfied. If you include multiple
tiddlers (using a space-separated list in the URL), they are
concatenated with a newline in between before being rendered.
The plugin also adds another powerful enhanced feature to the
<<tiddler>> macro: you can list several alternative 'fallback'
references for the desired content source, separated by "|" (similar
to the usage for an external PrettyLink: [[text|URL]]). The enhanced
macro will try each alternative, in turn, until it succeeds in
retrieving content (or runs out of alternatives). For example:
<<tiddler [[HelloThere|
http://www.TiddlyWiki.com/#HelloThere]]>>
will display the locally-stored [[HelloThere]] tiddler if it exists in
the document, and will automatically fall back to using the remotely-
hosted [[HelloThere]] content if the local tiddler is deleted (or was
never copied into the document!)
While this plugin has been reasonably well-tested, it is *very* new,
so please use it with care, and report any problems you have, so I can
fix them right away...
Please refer to the plugin documentation for additional details and
examples...
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios