Hi Mohammad
> In https://tiddlywiki.com/#RenderTiddlerCommand it states that "The 
> --rendertiddler command is deprecated in favor of the new, more flexible 
> --render command". this is true for "--rendertiddlers", but when one create a 
> new wiki using "tiddlywiki mywiki --init server" even in TW-5.1.22 you get 
> your tiddlywiki.info uses old commands. What do you recommend here?
We should update the examples here. There’s nothing wrong with rendertiddlers 
beyond that it isn’t as flexible.

> Is it possible to use "--render" and use "filename-filter" to remove space 
> and odd characters (e.g. / [ " % $) from tiddler name and store in a specific 
> folder for example ./blog, ./asset, ...
The filename filter parameter is used to transform the tiddler title into a 
filename, and so you could indeed use a regexp to remove those characters. I 
think you’re probably after the “slugify” operator discussed here: 
https://github.com/Jermolene/TiddlyWiki5/issues/3379#issuecomment-411401582

> Most problematic one: Is there any way to use --render and prevent the extra 
> <p> tag generation? I use a grid layout for static website generated by 
> TW-5.1.22 and these <p> tags make to destroy the grid layout.
I assume your render command is outputting to text/html format? If so, and your 
current template is $:/mytemplate, try adding a new template called 
$:/mytemplate-wrapper containing the content below:

<$view mode="htmlwikified" mode="inline"/>

And then render the new $:/mytemplate-wrapper template with the output type set 
to text/plain.

Best wishes

Jeremy.

> Many thanks for your help
> --Mohammad
> 
> 
> The “build” command lets you store named sequences of commands and invoke 
> them with a single command, making it easier to type common commands.
> 
> The build targets are defined in the tiddlywiki.info 
> <http://tiddlywiki.info/> in the root of the wiki folder like this:
> 
> {
>       "description": "Empty edition",
>       "plugins": [
>       ],
>       "themes": [
>               "tiddlywiki/vanilla",
>               "tiddlywiki/snowwhite"
>       ],
>       "build": {
>               "index": [
>                       
> "--rendertiddler","$:/core/save/all","index.html","text/plain"],
>               "empty": [
>                       
> "--rendertiddler","$:/core/save/all","empty.html","text/plain",
>                       
> "--rendertiddler","$:/core/save/all","empty.hta","text/plain"],
>               "externalimages": [
>                       "--savetiddlers","[is[image]]","images",
>                       
> "--setfield","[is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
>                       "--setfield","[is[image]]","text","","text/plain",
>                       
> "--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
>               "static": [
>                       
> "--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain",
>                       
> "--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain",
>                       
> "--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain",
>                       
> "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"]
>       }
> }
> 
> Those commands could be performed like this:
> 
> tiddlywiki mywiki --build index empty static
> 
> Best wishes
> 
> Jeremy
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/b976dbe2-235f-45c2-9ea3-07f3ca2c47fa%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/b976dbe2-235f-45c2-9ea3-07f3ca2c47fa%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/4848287B-C98F-4B49-8213-6FB70228A7C5%40gmail.com.

Reply via email to