I've been using the plantuml plugins for both TWc and TW5 recently and love 
it. Picture tiddlers are now replacing boring old text in my tiddlywiki ;-]

Still learning plantuml, but I saw it has a include feature, which helps 
break large plantuml code blocks into smaller ones by calling included 
files. I'm assuming include won't work on TW5.

However, it got me thinking that maybe I could transclude some plantuml 
tiddlers to obtain the same sort of result as the include function.

I took a simple plantuml tiddler with:

[[plantuml class="pretty" output="img" [
@startuml
class Class
@enduml
]]]

and I created a tiddler Class with just:

class Class

and then tried

[[plantuml class="pretty" output="img" [
@startuml
{{Class}}
@enduml
]]]

but got:

<https://lh3.googleusercontent.com/-23hM7RsmLvs/W16m2YRBxsI/AAAAAAAABg0/OG8xskYHergFtUBRBZcPEucEI3pntvqtgCLcBGAs/s1600/New%2BBitmap%2BImage.png>


which wasn't what I wanted and the error told me I was literally getting 
{{Class}}, not its trancluded value.


After reading tiddlywiki.com for awhile (and with head spinning a bit, I 
must admit) I stumbled upon trying:


<$plantuml
source={{Class}}
/>


which worked and gave me encouragement. Then I tried to get fancier so I 
created a couple more tiddlers, PlantUmlSetup:


skinparam defaultTextAlignment center
skinparam class {
BackgroundColor Azure
ArrowColor Blue
BorderColor Blue
}
skinparam stereotypeCBackgroundColor LightBlue


and AllCode tiddler:


{{PlantUmlSetup}}
{{Class}}


and then tried:


<$plantuml
source={{AllCode}}
/>


which literally gave me:


{{PlantUmlSetup}}
{{Class}}


Deja vu all over again. I'm hopeful a more experienced coder can get me 
going in the correct direction once again.


Thanks for your time and any help!

Chris

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/72b81015-a81c-4149-8065-4ee1422a150f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to