I am not clear on precisely what you want to do here regarding macros. 
However, you can write JavaScript in tiddlers that will run on the backend 
under node.js.
See the following for an example of adding a new route to the server:

https://saqimtiaz.github.io/sq-tw/sandbox.html#%24%3A%2Fsq%2FServerRoutes%2Fpost-upload

This is adapted from code from Bob, so there may be other examples to be 
found there:
https://github.com/OokTech/TW5-Bob

It may also be instructive to look at the code for the render command:
https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/render.js

All of this pre-supposes fluency with JavaScript.

On Friday, July 31, 2020 at 8:09:38 AM UTC+2, Rafael Oliveira wrote:
>
> I've seen that TW has a REST API <https://tiddlywiki.com/#WebServer%20API> 
> with 10 different funcionalities:
>
>    - Delete Tiddler
>    - Force Basic Authentication Login
>    - Get All Tiddlers
>    - Get Favicon
>    - Get File
>    - Get Rendered Tiddler
>    - Get Server Status
>    - Get Tiddler
>    - Get Wiki
>    - Put Tiddler
>
> Taking into consideration all the different filters we can create inside 
> TW, I was thinking that creating alternative APIs could be useful at some 
> point for me. However, I'm in doubt if this is possible. Can I create a new 
> REST API with a tiddler that will deliver to a client the results of a TW 
> macro? In my case I use the node.js version... Would I have to develop 
> backend code that is outside the TiddlyWiki page to create new APIs?
>
>
> If this is possible from inside the TW page... I'd like some directions on 
> what are the topics I should be looking to make it happen...
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0c28e0a8-3176-44e3-9db5-fcf39ae78527o%40googlegroups.com.

Reply via email to