Hi Tony

To wrap existing content with wikitext that incorporates opening and closing 
tags, then one would normally use a transclusion. So, to wrap a DIV around the 
content of a tiddler:

<div>
{{myTiddler}}
</div>

There’s no way to transclude the “<div>” and “</div>” separately from different 
tiddlers.

Can you outline what you’re trying to accomplish?

Best wishes

Jeremy

> On 13 Jul 2019, at 03:37, TonyM <[email protected]> wrote:
> 
> Folks,
> 
> I am experimenting on an idea, that I can share in full, If I can find a 
> method wrapping content. I intend to do this in the view template and 
> elsewhere.
> 
> This is very easy to do unless that which you whish to wrap has opening and 
> closing tags.
> 
> For example, say I choose to target the text field in the viewTemplate
> 
> <$set name=test-value value="Content of test-value">
> 
> Display the body of the tiddler as found in the text field where 
> test-value=<<test-value>>
> 
> </$set>
> 
> For example modify $:/core/ui/ViewTemplate/body
> 
> <$reveal tag="div" class="tc-tiddler-body" type="nomatch" 
> stateTitle=<<folded-state>> text="hide" retain="yes" animate="yes">
> 
> 
> <$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
> 
> 
> {{Prefix-content}} here
> 
> 
> <$transclude>
> 
> 
> <$transclude tiddler="$:/language/MissingTiddler/Hint"/>
> 
> 
> </$transclude>
> 
> 
> {{Suffix-content}} here
> 
> 
> </$list>
> 
> 
> </$reveal>
> 
> For reasons that may be obvious to others this does not work.
> 
> Can anyone suggest a way to permit this?
> 
> Regards
> Tony
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> <https://groups.google.com/group/tiddlywikidev>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/b6fda1e2-b196-44fd-b0c2-f3dc036e5f97%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/b6fda1e2-b196-44fd-b0c2-f3dc036e5f97%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/F16E9AC7-C254-4752-A123-CD7CA2C4EB8C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to