I wish to send Python script a definition file (with key and value pairs) which it should translate into an html table using templates.
For example:
say that the definitions file def.txt contain the following lines:
build number: 5513
build date: 12/09/2011
I want it to be able to read it easily (iterate on each line) and create a data table.
something like:
<tbl>
<tr> <td> build number </td> <td> 5515 </td> </tr>
<tr> <td> build date </td> <td> 12/09/2011</td> </tr>
</tbl>
I want it to work for N lines in definition file. I don’t care about the definition file format…
Any suggestions?
Thanks.
Or.
1 Answer