Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rendertiddler command is not export static CSS file as expected #703

Closed
dullroar opened this issue Jul 25, 2014 · 3 comments
Closed

rendertiddler command is not export static CSS file as expected #703

dullroar opened this issue Jul 25, 2014 · 3 comments

Comments

@dullroar
Copy link
Contributor

The following is an issue even with an empty TiddlyWiki template file downloaded from tiddlywiki.com. I have been testing it on Windows 8.1 using TW 5.0.13beta (and now the TW 5.0.14 code that fixed issue #700) and node v0.10.29.

When running the following command (adapted from this post - #168), the second rendertiddler command doesn't produce the expected output, that is, a static.css file in the output/static directory.

tiddlywiki --load mylife.htm --verbose --rendertiddler $:/core/templates/static.template.html static.html text/plain --rendertiddler $:/core/templates/static.template.css static/static.css text/plain --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain

The first rendertiddler command produces the static.html file just fine, and the third rendertiddlers command dumps all the tiddlers into the static directory as expected (thanks to the fix!). It is just the second rendertiddler command that isn't working. There are no error messages, either. I have confirmed that $:/core/templates/static.template.css exists as a static tiddler.

Will start digging but wanted to log the issue first.

@Jermolene
Copy link
Owner

Hi @dullroar the reason is that the --rendertiddlers command clears out the specified directory before writing the individual tiddler files. See the last paragraph:

http://tiddlywiki.com/#RenderTiddlersCommand

So you should reorder things so that writing the CSS file happens after the render tiddlers command.

@dullroar
Copy link
Contributor Author

Makes sense, and I remember reading that, now (I _have_ read most of the docs! :) ). May I humbly suggest your comment in issue #168 be modified then, because that is what I was using as the basis of my command, and I had found it via googling? I will close this issue. Thanks.

@Jermolene
Copy link
Owner

Good thinking, thanks @dullroar, I've edited that comment.

Jermolene pushed a commit that referenced this issue Aug 8, 2016
Prevents the `--rendertiddlers` removing the `static.css` file rendered earlier,
similar to #1207
and #703.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants