It would be nice to add one more layer of indirection if necessary -- here
are some examples
{{foo.jpg}} -- transclude an image
{{foo.jpg | width:100, height:35} -- translude a image with size
{{TiddlerLink}} -- transclude a tiddler
{{my_local_file.txt | type:text, start:200, stop:400}} transclude a
local file from lines 200 to 400
The syntax {{File | arg1:..., arg2:...}} means translude File with some
arguments, and the meaning would depend
upon the file type. As the number of arguments become large it becomes very
difficult to add them 'in line' - so
we add a layer of indirection
{{MyTiddler.tr}} this means the translusion instructions will be found
in the Tiddler MyTiddler.tr -- these could be
very long and complicated (for example contain SQL queries, entire scripts
in some programming language etc.)
As an experiment I'm writing a pure stand-alone transcluder that only
expands {{...}} items.
It came as a nasty surprise to me that {{http://some_thing.html}} didn't do
what I expected :-)
There's actually a very long philosophical discussion to be had about the
scope of transclusions - Jeremy's design
for the tiddly wiki was to strictly adhere to what I call 'all in one' ness
- ie all the tiddlers you can refer to must be
in the same physical and logical container - this is great for many
purposes since it ensures the TW will still be the same
in many years time BUT ... I find myself wanting to break outside the
container.
[http://....]] does allow a breakout - when you click it.
{{http://....}} could mean - "go and transcribe the contents of the
reference and cache the contents" but for how long - would remote
transclusions have a time to live? It would be very nice to transclude
tiddlers from somebody else's TW - but how would this work? Should a TW
have a public interface (ie certain tiddlers are tagged as public) and may
be remotely transcluded.
On Saturday, 29 September 2018 11:33:25 UTC+2, Mat wrote:
>
> For TWX (a potential, fantastical, future version of TW) I'm proposing
> some minor syntactical changes - assuming the overall TW syntax paradigm is
> at all still relevant then;
>
> {{{ ... }}} - instead of current filter evaluation, it is used to
> "transclude the transclusion". There are occasions where {{foo}} gives
> "bar" but what is needed is {{bar}}, so this super transclusion would do
> this. Thus, the swirly brackets are dedicated to transclusion matters.
>
>
> [[[ ... ]]] - this, instead, is for "filter evaluation". Thus, square
> brackets are dedicated to filter matters.
>
>
> <:-)
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/e4fae511-7a5b-41f1-b686-2df9554838b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.