Using T in Layout.html is make me to copy-paste code from common.py to
layout.html
[[from py4web import Translator]]
[[from ..settings import T_FOLDER]]
[[T = Translator(T_FOLDER)]]
<html>
some code
...
<a href="[[=URL('auth/register')]]">[[=T('Sign in')]]
...
</html>
How to make that no repeat code?
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/068199bf-2cba-46c0-ac67-94db766ebd0a%40googlegroups.com.