2023-06-24 13:57:15 +00:00
|
|
|
title: Widgets/SubstitutedAttributes
|
|
|
|
description: Attributes specified as string that should have substitution performed.
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
2023-07-14 20:42:31 +00:00
|
|
|
<$set name="var with spaces" value="spaces">
|
|
|
|
<$let project="TiddlyWiki" disabled="true" var-with-dashes="dashes">
|
2023-06-24 13:57:15 +00:00
|
|
|
<div class=`$(project)$
|
2023-07-14 20:42:31 +00:00
|
|
|
${ [[Hello]addsuffix[There]] }$` attrib=`myvalue` otherattrib=`$(1)$` blankattrib=`` quoted="here" disabled=```$(disabled)$``` dashes=`$(var-with-dashes)$` spaces=`$(var with spaces)$`>
|
2023-06-24 13:57:15 +00:00
|
|
|
</div>
|
|
|
|
</$let>
|
2023-07-14 20:42:31 +00:00
|
|
|
</$set>
|
2023-06-24 13:57:15 +00:00
|
|
|
|
|
|
|
+
|
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p><div attrib="myvalue" blankattrib="" class="TiddlyWiki
|
2023-07-14 20:42:31 +00:00
|
|
|
HelloThere" dashes="dashes" disabled="true" otherattrib="" quoted="here" spaces="spaces"></div></p>
|