Query about Makedatauri Macro

57 views
Skip to first unread message

prog...@assays.tv

unread,
May 27, 2016, 9:01:52 AM5/27/16
to TiddlyWiki
Is the Makedatauri Macro (http://tiddlywiki.com/#makedatauri%20Macro) able to produce properly "percentage encoded" URIs? On first look it appears so but I just can't figure out how to use it.

My intent is to pass the text of a tiddler to an URL.

I'm out of my depth on this so need some input.

Josiah

c pa

unread,
May 27, 2016, 11:43:16 AM5/27/16
to TiddlyWiki
Josiah,

The purpose of a data uri is to encode a web page or some part of a web page into a url. Thus, you don't need to have access to that external resource in order to display it. This is great for single page wikis like TiddlyWiki.

Example: Clicking on the following . . .(from the datauri example)  data:text/plain,some%20example%20text
will open a web page with the text in it. It will do this even if you are not connected to the web.

To pass the text of a tiddler to a URL use the datauri macro as in the example (Except use the title of your text tiddler instead of the jpg used in the example

<$macrocall $name="datauri" title="Motovun Jack.jpg" $output="text/plain"/>


Reply all
Reply to author
Forward
Message has been deleted
0 new messages