edit.html

<form method="POST">

<div>

<label for="filename">filename</label>

<input type="txt" name="filename" id="filename" value="{{filename}}" readonly>

</div>

<div>

<textarea name="txt" rows="30" cols="80">{{txt}}</textarea>

</div>

<div>

<input type="checkbox" name="is_private" id="is_private" value="true"{{#is_private}} checked{{/is_private}}>

<label for="is_private">private file</label>

</div>

<div>

<input type="checkbox" name="is_temp" id="is_temp" value="true"{{#is_temp}} checked{{/is_temp}}>

<label for="is_temp">temp file</label>

</div>

<div>

<input type="submit" value="Update" formaction="/txt/edit">

<input type="submit" value="Delete" formaction="/txt/delete">

</div>

</form>

raw edit