Captain Packers is right to say that one can insert tiddlers in a running
wiki server. For instance, consider this command:
curl -v -H "Content-Type: application/json" -X PUT \
--data-binary '{ "text": "Some content above the line", "tags":
"[[incoming content]] $:/tags/AboveStory"}' \
"http://127.0.0.1:8080/recipes/default/tiddlers/MyTiddler"
If a wiki server is running at http://127.0.0.1:8080, issuing this command
in a shell will surely create (or replace) a tiddler which title is
MyTiddler and which content will appear above the Story List.
More interesting things can be done as soon as you add fields to be
processed by a template :
curl -v -H "Content-Type: application/json" -X PUT \
--data-binary '{ "text": "{{||A template to handle data}}", "tags":
"[[incoming data]] $:/tags/AboveStory", "data1":"whatever" }' \
"http://127.0.0.1:8080/recipes/default/tiddlers/MyDataTiddler1"
Now, I'm not sure that placing such tiddlers in the Story List is a good
idea. If we want them to be visible as soon as they are loaded, we may be
better off giving them a tag that make them appear at a known place (like
on the side bar).
X.
-- Xavier Cazin
On Thu, Feb 23, 2017 at 4:15 AM, Riz <[email protected]> wrote:
> You got to restart the server. That does not mean you have to do it
> manually. Try using something like nodemon <https://nodemon.io/>to watch
> the folder and restart when there are changes.
>
> On Thursday, 23 February 2017 01:47:39 UTC+5:30, Captain Packers wrote:
>>
>> the actual contents of $__StoryList.tid on the server
>
> --
> 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 https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tiddlywiki/a607cabd-cabe-4457-91cc-4ca325684cb0%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/a607cabd-cabe-4457-91cc-4ca325684cb0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/CADeSwYM0YWPMgSFmZZY_2LDw21QZszji%3DCH2Y%2BTNkO3baMqd6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.