Button text showing code

Hi tiddlyfolks

I have been experimenting with importing images into tiddlywiki and found some code - https://groups.google.com/g/tiddlywiki/c/1yTi65sc8D8/m/0ru-PhMJBAAJ - that does the job perfectly. However, it creates a kind of garbled button that displays all of the code contained within the button element as the button label, am I missing something obvious here?


\define gluepath() $(path)$$(image)$
<$set name="path" value="file:///D:\\data\\graphics\\file-us">

<$button>Make Image Tiddlers
<$list filter="[[MyImages]indexes[]]" variable="image">
<$action-createtiddler $basetitle=<<image>> _canonical_uri=<<gluepath>> type="image/jpeg">
</$list>
</$button>

</$set>

Many thanks

M

It looks like you forgot to close your $action-createtiddler widget here. Try type="image/jpeg"/>