in reply to how to add default value using hash value and delimiter to text area in template toolkit

More of an HTML question, but just have it print the value between the textarea tags .. Note i removed the line breaks -- if you leave them there they will be part of the default value.
<textarea rows="4" name="[%element.name %]" >[% element.default %]</te +xtarea>
As for the second part, it seems like you want to add the '$' or whatever delimiter to element.default before you pass it to the template -- may sometihng like $element->{default} =~ s/\n/\$/sg;
  • Comment on Re: how to add default value using hash value and delimiter to text area in template toolkit
  • Select or Download Code