Is it possible to have a ViewTemplate inside the CompoundTiddler of a testcase widget be applied to other included tiddlers?
I’m trying to write some documentation, and The TestCaseWidget looks extremely useful for it. But one of the important things I’m trying to demonstrate is the use of ViewTempates, and it doesn’t seem to be applying. Here’s my setup: (ViewTemplateInTestCase.json (1.1 KB))
title: ViewTemplate in TestCase
<<testcase "docs/testcases/Customer with template">>
title: docs/testcases/Customer with template
type: text/vnd.tiddlywiki-multiple
desciption: An attempt to use a ViewTemplate in a testcase
title: Output
tags: Customer
caption: Francisco Chang
city: México D.F.
country: Mexico
first-name: Francisco
id: 13
last-name: Chang
phone: (5) 555-3392
type: text/vnd.tiddlywiki
+
title: docs/templates/Customer
tags: $:/tags/ViewTemplate
list-before: $:/core/ui/ViewTemplate/body
<% if [<currentTiddler>tag[Customer]] %>
<div class="customer-card">
<$link to=<<currentTiddler>> >{{!!caption}}</$link><br/>
<address>
{{!!city}}, <$link to={{!!country}}/><br />
Phone: <a href=`tel:${ [{!!phone}search-replace:g:regexp[\D],[]] }$`>{{!!phone}}</a>
</address>
</div>
<% endif %>
+
title: Narrative
Why doesn't the ~ViewTemplate work here?
Note that the ViewTemplate in the compound tiddler is not being used when displaying the Output.
Am I doing it wrong? Or is this simply not possible right now?