maanantai 26. syyskuuta 2016 20.11.06 UTC+3 Anthony kirjoitti:
>
>
> It actually doesn't matter that much for me, I only work with web2py 
>> templates.  End result just looks little unprofessional since it's not 
>> formatted properly and I couldn't figure out any reason why not to do so.
>>
>
> "Unprofessional" to whom? Who's looking at the page source that you're 
> trying to impress (that wouldn't understand the nature of template engines 
> and the unimportance of indentation)?
>  
>
>> I think this would be a nice to have feature in production to get cleaner 
>> and more professional looking end result.
>>
>
> Production is the one place you probably don't want this feature, as it 
> would require a little extra processing and increase the payload.
>  
>
>> And human readable HTML helps also in development, especially if you're 
>> working with someone who is not familiar with web2py templates.
>>
>
> Again, keep in mind that you can just indent the content in the included 
> file. Any decent code editor will let you quickly indent multiple lines 
> simultaneously.
>
> Anthony
>

Yes I know I can indent multiple lines simultaneously but it's still manual 
and unnecessary work, also messes up my source so not really an option. The 
whole point was that if there is no harm to indent everything properly by 
template engine, then why not to do it. But I understood your point why 
it's not implemented by default so basically it answers to my question.

Not sure how much more processing and payload is needed if this is 
implemented. If it's practically zero then I would do it but of course if 
it's significant then it's better to let it be like it's now.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to