On 20 April 2012 09:19, Simon Pickles <[email protected]> wrote:

> Hi,
>
> New to web2py and having trouble with simple HTML in a view. In my
> default/index.html:
>
>
> {{=IMG(_src=URL('static','images/map420x200.png'))}}
> <img src="static/images/map420x200.png" style="border: 2px; width:420px;
> height:200px;"/>
>
> The first line works, rendering the map png. However, the second HTML
> equivalent doesnt. The bordered box appears empty then disappears. Is my
> path wrong?
>
>
Hint:  Look at the generated html of the first line by doing the following
in the shell:

$ python web2py.py -M -N -S <yourapp>

print URL('static','images/map420x200.png')

Regards
Johann
-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Reply via email to