1) There is generally less typing in helpers and mistakes are easier
to pick up. If you miss a closing bracket then it will throw an error.
If you miss a tag then it may just display incorrectly.
2) It is also much more concise and easier to read in complex views.
You avoid the special characters (" ' < >); and can use shortcuts with
list comprehensions. For example this would be much more verbose with
raw html.:
extractview=TABLE()
for record in extractdata:
header=[TH(column) for column in record["header"]]
rows=[TR(*row) for row in record["rows"]]
extractview.append(TABLE(header, *rows, _class="boxtable"))
On Jul 11, 12:39 am, pbreit <[email protected]> wrote:
> Pretty much the only helper I use in views is URL(). But I use helpers more
> extensively in controllers.