On Sep 30, 1:46 pm, hugheth <[email protected]> wrote:
> 1)  TiddlySpace Applications such as preso2 rely on "twikifier" to
> produce an HTML representation of tiddlers. This currently doesn't
> have the ability to deal with macros, though I gather this
> functionality is planned. As is such, no macros will currently work in
> preso2, until changes to twikifier are made.

This isn't quite accurate. Some macros do work in twikifier, as long
as the rendered tiddler is presented to twikifier with the right
context (a bag or recipe). Things like <<list>> <<timeline>> and
<<tiddler>> can all work.

<<foreachTiddler>> doesn't work because that macro is not included in
the set of macros that twikifier has available. It is unlikely that it
ever will.

The reason for this is that fET's run code and we cannot allow a
user's custom code to run on the server (without complicated
safeguards that we don't have implemented at the moment).

If we did let such code run it could lessen the server's ability to
service other users.

> 2) Again, functionality such as twikifier should be handling this at a
> lower level below preso2. Can you file this as an issue 
> athttps://github.com/Hugheth/preso2/explaining what you (presumably)
> found so I can comment further? Cheers.

This isn't quite true either. twikifier doesn't have anything to do
with rendering binary tiddlers. When a binary tiddlers is requested
from the server, if you ask for it as JSON, you get the binary content
of the tiddler in the text field, base64 encoded, with the 'type'
field set to the content-type of the tiddler. If you ask for it raw
(i.e. Accept: */*) it will be returned in its binary form. So what
preso2 ought to be doing is seeing that a tiddler is binary and doing
the appropriate thing (either pushing the base64 text into a data URI,
or requesting the raw content). twikifier never comes into play for a
binary tiddler, only for tiddlers which are considered to be wikitext.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki?hl=en.

Reply via email to