Hi Branimir

Apologies, I missed out a couple of points: you'll need to remove the
triple backticks from your code tiddlers. If you still want those tiddlers
to display as fixed width text then you can give them the type text/plain.

In terms of transclusion, there's basically two ways of doing it:

* To replace any transclusions with the target text (if necessary
repeatedly), and then parse and render the result. The downside of this
approach is that if one of the transcluded tiddlers changes then we need to
refresh the entire tiddler
* To treat transclusions more like an HTML iframe, where the transcluded
text is parsed separately and then spliced into the output tree. The upside
of this approach is that we can then selectively refresh individual
transclusions, making the process much more efficient

TiddlyWiki supports both approaches. Textual transclusion is accomplished
via macro parameters and variable substitutions. Structured transclusion is
accomplished via the transclude widget.

There's much more flexibility baked into the transclude widget, simply
because it's almost always the most efficient. But there are many tasks
that require the textual transclusion capability of macros.

The particular use case here would require a form of filtered textual
transclusion that isn't possible right now. But we might imagine something
like this:

\define my-concatenated-tiddlers(filter)
```
$$( $filter$ || mytemplate )$$
```
\end

Best wishes

Jeremy


On Wed, Aug 27, 2014 at 9:00 PM, Branimir Braykov <[email protected]> wrote:

> Hi, Jeremy,
> 10x for your quick answer.
> I tried the proposed way, but the resulting block includes a lot of ``` as
> they become part of the text.
> My actual tiddlers only include something like:
>
>> ```
>> text
>> more text
>> ```
>
>
> I was originaly trying to follow the logic as explained in
> TranscludeWidget.
> Actually this should work if I have tiddlers that only contain, e.g.
> unordered list.
> But after combining such tiddlers I do get a small whitespace, separating
> the lists from the two tiddlers.
> The same behavior is observed when I try to combine codeblocks.
> From what is given in the example in TranscludeWidget, which is actually
> more complex, transcluding tiddlers in block mode means that the tiddlers
> are combined as a single "block"-ed content but wikified as within the
> separate tiddlers.
> I too would like to hear other opinions on the matter.
>
> Either way I think it should be possible to transclude tiddlers both like
> it works now, in separate blocks and as a single block, list, etc.
> If that sounds complicated I can provide examples.
>
> --
> 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]

-- 
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