Hi Chris

Is it too late for a single tiddler that contains tiddlers to have a
> type of its own like application/tiddlywiki+json? If you then PUT as
> application/json with a type of application/tiddlywiki+json you
> should be able to get the right thing back.


It's not too late to change the plugin content type, no. There's a bunch of
JSON tiddlers that TW5 uses, though, not just plugins. We'd have to create
an application/vnd.tiddlywiki-blah+json type for each one, I guess.

More to the point, there is support for users creating and using JSON
tiddlers.


> Text tiddlers clearly contain plain text but we call them
> text/x-tiddlywiki and text/vnd.tiddlywiki frequently?


Good point. But we use application/javascript for javascript, regardless of
what role that JavaScript plays.


> Apparently this case hasn't come up in the past. The standard way to
> store structured data has been to use the existing attributes and
> fields _on_ a tiddler, not put structured data _in_ the text field
> of the tiddler.
>

Right. But one wouldn't expect that a consequence of deciding to try
putting structured data in a tiddler would be to change the retrieval
behaviour (I would expect it to change the rendering behaviour, but I think
that's different).


> Obviously the aggregate tiddlers-in-a-single-tiddler case doesn't
> map well to that. From the server's standpoint this would make the
> most sense: what we have here are tiddlers and thats it, none of
> these "weird" things that are actually containers of tiddlers. This
> buys some granularity of reuse too, in case that's of interest.
>
> Would it be possible to explode the single tiddler to its constituent
> tiddlers before PUTting to the server and recompose them on GET
> (perhaps by way of transclusion)?


We could perhaps do it for plugins (at a ridiculous cost; we've got plugins
with hundreds of tiddlers in them). But it wouldn't solve the problems for
the other cases of JSON being stored in tiddlers.

All I need is a reliable way to read the text and fields of a tiddler,
regardless of its content type.

Best wishes

Jeremy.




>
>
> --
> Chris Dent                                   http://burningchrome.com/
>                                 [...]
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" 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/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to