Re: [tw] [TW5] How to combine/transclude codeblock tiddlers?

2014-08-27 Thread Jeremy Ruston
Hi Branimir

I would like to use Transclude widget to combine them as a single block.
>

Yes, that makes sense.


> I tried this:
>
>> <$transclude tiddler="Tiddler 1" mode=block/>
>> <$transclude tiddler="Tiddler 2" mode=block/>
>
> But I still get two separate codeblocks.
>

TiddlyWiki doesn't merge consecutive code blocks. I'm not sure that it
should, though, what do others think?

Surrounding these two widget calls with ``` also doesn't work as it does
> not get wikified.
>


> So how do I do that?
>

There are two parts to the answer:

* Use an explicit  tag inside a  tag instead of the triple
backticks syntax
* Rather than transcluding the target tiddlers (which causes them to be
wikified), use the view widget to render them in plain text

The end result would be something like this:


<$view tiddler="text1"/>
<$view tiddler="text2"/>


Would that work for you?

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 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] How to combine/transclude codeblock tiddlers?

2014-08-27 Thread Branimir Braykov
I have several tiddlers that only contain single codeblocks.
Like, these are two tiddlers:
Tiddler1

> ```
> line 1
> line 2
> line 3
> ```

Tiddler2

> ```
> text 1
> text 2
> text 3

```

I would like to use Transclude widget to combine them as a single block.
I tried this:

> <$transclude tiddler="Tiddler 1" mode=block/>
> <$transclude tiddler="Tiddler 2" mode=block/>

But I still get two separate codeblocks.
Surrounding these two widget calls with ``` also doesn't work as it does 
not get wikified.
So how do I do that?

-- 
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.
For more options, visit https://groups.google.com/d/optout.