Also, check out this answer: http://stackoverflow.com/questions/8091487/what-are-the-benefits-of-building-html-markup-with-html-helpers-in-web2py/8095585#8095585
On Monday, March 16, 2015 at 10:34:03 AM UTC-4, Leonel Câmara wrote: > > Usually it's better to use HTML directly in the views and generate all > HTML there as it's faster and it's easier for designers to understand. The > controllers should also be agnostic of whether they are going to show their > results in HTML or anything else as otherwise you're breaking MVC, so, > right there, you have a reason to avoid using helpers in your controllers. > > The helpers are there so it's easier to manipulate DOM serverside. > Normally, you will want to use the helpers when you want to program a > function that will generate HTML for you that you will be using in many > different places (think of stuff like SQLFORM or the grid), for me, the > helpers are also practical to write HTML elements in the view that have > many attributes. I think it's just a matter of using some common sense, > when deciding what to use > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

