Rendering tiddler with macro under node.js

48 views
Skip to first unread message

Laurent Bonet

unread,
Jul 30, 2018, 5:57:20 PM7/30/18
to TiddlyWiki
Under node.js, I'm not able to render a tiddler which contains macros (either mine or the standard tiddlywiki one like table of content ).

Content of my test tiddler
----
Start of the tidler

<<mymacro Laurent>>

End of the tiddler
----

with the following result under tiddlywiki



The command used
----
tiddlywiki /Users/Laurent/TW/TEST --render "[[test]]" "[is[tiddler]addsuffix[.html]]" text/plain $:/core/templates/html-tiddler

----

The result, without the output of my simple macro :-(
----

<p>Start of the tidler</p><p>End of the tiddler</p>

----

Using the export menu is OK but I want to get a "raw" html output for further processing (including pdf creation through the wkhtmltopdf application).


Thx in advance for your help.

Laurent

Laurent Bonet

unread,
Sep 3, 2018, 8:29:32 PM9/3/18
to TiddlyWiki
Found the answer myself

<$importvariables filter="[tag[$:/tags/Macro]]">

must be used.
Reply all
Reply to author
Forward
0 new messages