Hi Danielo

You're right! using the text/html type works flawesly!!
>

text/html has been implemented for quite a long time, but it's implemented
differently: as an iframe. That means that the content appears visually
part of the wiki, but isn't properly integrated with it.

>
> Jeremy, in 5.1.10 is it supposed to work with text/plain? I'm testing and
> it does not work neither. I'm trying to display a bash file as plain text.
>

In the current prerelease it works with tiddlers with the type
text/vnd.tiddlywiki and a _canonical_uri field pointing to a .tid file.
Accessing such a tiddler triggers the retrieval of the file. The .tid file
can specify a different content type than the "skinny" version. So you
could use the mechanism to retrieve plain text tiddlers, but as things
stand the plain text file would need to be a .tid file. (I'll look at
extending the mechanism to read other file types).

Have a look at the "Alice in Wonderland" sample that's included in the
prerelease. Serving that scenario from an HTTP URI is the only thing that
works straightforwardly, without the kind of wrinkles we're discussing in
this thread.

Basically, the current support for external (wiki)text tiddlers only
straightforwardly answers one use case: being able to publish a TiddlyWiki
HTML file over HTTP that offloads some content into external files that are
only loaded on demand. There's a lot of other things that can be done with
the new support, but care needs to be taken to understand the implications
of the limitations that browsers impose.

Best wishes

Jeremy.





-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJbQhmiD8jW-GuLNEgnmW1KpnPdckdb11VH%2BvXgUyjuYdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to