You need quotes around the value, otherwise the space ends the attribute.
In general, you should put quotes around all attribute values.
<input type="text" name="{{k1}}" value="{{v1}}" size = "50" ><br>