http://qs321.pair.com?node_id=508030


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

1) A <textarea> form element is different from the other <input> elements in that it has a beginning and ending tag, with the 'value' between those. Thus to start a textarea with the value "Howdy!" you would code
<textarea>Howdy!</textarea>
So it looks like you could add the value in your template by using
<textarea rows="4" name="[% element.name %]">
[% element.value %]
</textarea>

2) I'm not sure I understand your question. You can 'see' separate values if they are on separate lines in the textarea. You may have to check for CR or LF characters, and to do that you might have to force CR/LF characters by playing with the wrap parameter, such as

<textarea wrap="hard"></textarea>
  • Comment on Re: how to add default value using hash value and delimiter to text area in template toolkit