Re: [tw] Re: Static files configuration

2015-06-25 Thread Jeremy Ruston
Hi Mario

I like this idea. But what if a tiddler has 2 tags eg: Task Ideas ?
>

The cascading part of the idea would be to use the first matching rule.

Best wishes

Jeremy


> -m
>
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJbqN6uY0UA2ea0KFUa7hJMq6zO9n78dQt%2B90qxSCEyBZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Static files configuration

2015-06-25 Thread PMario
On Thursday, June 25, 2015 at 1:29:19 PM UTC+2, Jeremy Ruston wrote:
>
> I'd considered extending the mechanism with some kind of filter-based 
> cascading rules. For example:
>
> /tasks/$encoded-title$: [tag[Task]]
> /ideas/$encoded-title$: [tag[Ideas]]
> /archive/$encoded-title$: [is[tiddler]]
>
> That example would save tiddlers tagged task to /tasks, and those tagged 
> ideas to /ideas, with the remainder getting an /archive URL.
>

I like this idea. But what if a tiddler has 2 tags eg: Task Ideas ?
-m
 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3304fda5-b781-4a79-98f4-38c00666a56e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Static files configuration

2015-06-25 Thread Jeremy Ruston
Hi Devin

On Tue, Jun 23, 2015 at 1:52 AM, Devin Weaver 
wrote:
>
>
> The tiddler files however could have any title. So the real question is
> how does the rendertiddler command know what path and filename to output
> to? Is it the tiddler title? or the original tiddler path with .tid turned
> to .html?
>

The rendertiddlers command uses the URI encoded tiddler title for the
filename:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/rendertiddlers.js#L60

I'd considered extending the mechanism with some kind of filter-based
cascading rules. For example:

/tasks/$encoded-title$: [tag[Task]]
/ideas/$encoded-title$: [tag[Ideas]]
/archive/$encoded-title$: [is[tiddler]]

That example would save tiddlers tagged task to /tasks, and those tagged
ideas to /ideas, with the remainder getting an /archive URL.

Best wishes

Jeremy.




>
> And Finally does TiddlyWiki have a way to customize that path?
>
> Can the file tiddlers/foo/bar.tid with a title: "baz bar froboz" be
> outputted to output/static/all/the/good/stuff/baz-bar-froboz.html ?
>
> On Monday, June 22, 2015 at 3:09:16 PM UTC-4, PMario wrote:
>>
>> IMO can be defined with the output parameter. see:
>> http://tiddlywiki.com/#OutputCommand, http://tiddlywiki.com/#
>> Commands
>> 
>>
>> How does you command look like?
>>
>> -m
>>
>  --
> 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 tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/97af8ea8-0184-4bd8-adeb-a21dfb880415%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJZbUwRkwaY1RcYLx1AccrFAdGmobi5HQ7Eq98aqOpSmQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.