Hi sini-Kit

The problem is that the --load command doesn't execute any modules within
the loaded file. You'll need to prepare a wiki folder that contains your
widget module - just start with editions/empty from the repo and add your
.js file to the `tiddlers` subfolder (creating it if necessary).

Then include the path to the wiki folder in the tiddlywiki command like
this:

tiddlywiki --verbose mywikifolder --load heeg.html --rendertiddlers
[!is[system]] $:/core/templates/static.tiddler.html static text/plain
--rendertiddler $:/theeg.template.css  static/static.css
text/vnd.tiddlywiki --rendertiddler $:/_heeg.js   static/heeg.js text/plain

Best wishes

Jeremy.


On Mon, Feb 16, 2015 at 8:37 PM, sini-Kit <[email protected]> wrote:

> I export all tiddlers by node.js ( I create static.bat file)
>
> tiddlywiki --verbose  --load heeg.html --rendertiddlers [!is[system]] $:
> /core/templates/static.tiddler.html static text/plain --rendertiddler 
> $:/theeg.template.css
>  static/static.css text/vnd.tiddlywiki --rendertiddler $:/_heeg.js
> static/heeg.js text/plain  && ^
> rename output\static\%%D0%%92%%D0%%B8%%D1%%82%%D1%%80%%D0%%B8%%D0%%BD%%D0
> %%B0.html index.html && ^
> xcopy images output\static\images /s /e /C /Y /d /i && ^
> copy heeg.html output\static\ && ^
> copy .htaccess output\static\ && ^
> copy favicon.ico output\static\
>
>
> so I think I use $:/core/templates/static.tiddler.html and here is macros
> http://novye-podarki.ru/heeg.html#%24%3A%2Fcore%2Fmodules%2Fwidgets%2Faddup.js
>
>
> понедельник, 16 февраля 2015 г., 19:29:17 UTC+3 пользователь Jeremy Ruston
> написал:
>
>> Hi sini-Kit
>>
>> Are you performing the export in the browser? The exported template
>> should have access to the same widgets as the wiki itself. Which export
>> template are you using?
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>> On Mon, Feb 16, 2015 at 12:38 PM, sini-Kit <[email protected]> wrote:
>>
>>> I have macros <$addup> in my tw5, and it works very well, but when I
>>> export tiddler to static I get a mistake Undefined widget 'addup'
>>> how can I export macros too?
>>>
>>> --
>>> 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 http://groups.google.com/group/tiddlywiki.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to