mycode = """
def function(): return  'blah'
"""

{{=CODE(mycode)}}

On Wed, Apr 25, 2012 at 9:33 AM, LMisi <lmi...@gmail.com> wrote:

> Hi!
>
> I can show my python code on my home page. I had to generate from
> something.py to something.html, but
> it does not work on views code. The first "{{" symbols generate error,
> because the web2py engine try to execute it.
>
> Thanks
>



-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to