> wondered how to bring html, css, scripts *and* images in one file?
>
> I think TiddlyWiki will be more useful or/and intuitive if you write
>
> <img src="data:image/png;base64, khsfkughdrjkghbdkgjh">
>
> instead of
>
> close.
>
> Wow, what is base64? Just start at the console (if you're using Linux)

See:
http://www.TiddlyTools.com/#AttachFilePlugin
http://www.TiddlyTools.com/#AttachFilePluginInfo
http://www.TiddlyTools.com/#AttachFilePluginFormatters
http://www.TiddlyTools.com/#AttachFileSample

AttachFilePlugin includes *automatic* base64 encoding built-in right
into the plugin, and AttachFilePluginFormatters extends the TW core's
[img[...]] syntax so you can refer to 'attachment tiddlers' in place
of direct image locations.

Attachment tiddlers provide 'virtualization' of image location to
three possible sources:

* stored in a tiddler (as base64 encoded content)
* reference to a local source path/file (can be relative or absolute)
* reference to a URL  (can be relative or absolute)

You can specify any or all of these source for a given image, and the
plugin code will automatically attempt a 3-step fallback: if there is
stored data, use it... otherwise, try for a local file... and, as a
last attempt, go for the URL.

Also, note that InternetExplorer does not support the data:// URI, so
any base64-encoding will not be used in IE, even if the data is
present in the attachment tiddler.  That is one of the purposes for
the 'virtualization of location' aspect of the attachments: it allows
you to create a document with self-contained encoded images that work
well in most browers, while also allowing for external images
references (either path/file or URL) when the encoded images aren't
supported.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to