Hi Jeremy,
{foo.bar.baz}
>>
>> ...which requires those inner dots, obviously. Otherwise, where's the
>> query in that point?
>>
>
> The problem I was getting at is that we want to be able to reference
> properties within tiddlers that have periods in their titles.
>
Talking of trees in the woods, *facepalm* :D
Well, what should work is this...
{tiddler.name|json.name.space}
Params may eventually be needed if you want your query to be more than a
> simple "fetch this leaf"...
> {foo.bar.baz [with:] [param] [key:val] [param]}
>
Given the new markup, if there would ever be a query other than "give me
that node", it could look like...
{tiddler.name|json.name.space param "param with spaces"}
If a namespace were to have spaces it would have to be enclosed in quotes
like...
{tiddler.name|"weird json.name space" param "param with spaces"}
I'm not sure that I understand the syntax here.
>
The question is whether or not at some point this JSON query does more than
a simple lookup of a given node. But then, as you said, we might just not
be a about "managing JSON"... but who knows.
Seeing how at one point a desire to do the same with XML will most
>> certainly pop up, perhaps it would be better if it were something like...
>>
>> {XML:foo.bar.baz [with:] [param] [key:val] [param]}
>>
>
> That takes us back to where I'm not keen to go: I think TW5 should be a
> tool for manipulating tiddlers, not a tool for manipulating XML - we've
> already got heaps of those, and I don't find them very interesting any more.
>
Yes, I certainly understand that and do not at all advise doing any such
development.
I was merely suggesting to consider the possibility of how this might
eventually be modeled if anyone ever thought TiddlyWiki were a good tool
for doing that. So, just for completeness sake...
{XML:tiddler.name|"xml.name space" param "param with spaces"}
> You may have spotted that tiddlers of type
> "application/x-tiddler-dictionary" are basically a shortcut syntax for a
> simple JSON hash.
>
Have not, perhaps that's something for tuesday.
Best wishes, Tobias.
--
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/groups/opt_out.