Render an html table stored in a file on local

84 views
Skip to first unread message

peuhpeuh singe

unread,
Sep 25, 2017, 4:48:41 AM9/25/17
to TiddlyWiki
Hi !

Is there a way to render into a tiddler an html table stored in a file on my local drive as it can be done for e.g. images using the macro "img" ?

Thanks in advance,
P.

Mark S.

unread,
Sep 25, 2017, 9:06:53 AM9/25/17
to TiddlyWiki
You can do this in an iframe, like:

<iframe src="table.html" width="90%" height="500px">

I use this so often, I rolled it into a macro:

\define xiframe(obj)
<iframe src="TW-Images/$obj$" width="90%" height="500px"></iframe>
\end

where TW-Images is the sub-directory where I keep file objects.

Good luck,
Mark

Mark S.

unread,
Sep 25, 2017, 1:32:15 PM9/25/17
to TiddlyWiki
I forgot the other way. You can make a tiddler with the field _canonical_uri set to the path of your file. Change the tiddler type to text/html.


Good luck,
Mark

On Monday, September 25, 2017 at 1:48:41 AM UTC-7, peuhpeuh singe wrote:
Reply all
Reply to author
Forward
0 new messages