My rule is:

- use html in views
- use html helpers in controllers and models
- always use URL to generate urls (*)

So in your example

<a href="URL('default','item',args=item.id)">{{=item.title}}</a>

The first two rules are a matter of test but (*) is not. Soon or later
your code breaks if you do not follow (*).

On Apr 5, 11:02 am, pbreit <pbreitenb...@gmail.com> wrote:
> What are people's thoughts on using HTML tags vs plain HTML? I'm thinking of
> going more towards pure HTML. Will I be losing anything major?
>
> For example:
>
> <a href="/item/{{=item.id}}">{{=item.title}}</a>
>
> {{=A(item.title, _href=URL('default', 'item', extension='', args=item.id))}}

Reply via email to