+1
I see you used some of the book code in the book. In particular you use
MARKMIN the way it is done in the book using extra variables. That is ok
and it is done for backward compatibility with old book sources which also
need to processed in latex. If that is not important there is a batter way
to use markmin:
from gluon.contrib.autolinks import expand_one
html = MARKMIN(page.body,url=True,environment={},
autolinks=lambda link: expand_one(link,{})).xml()
Because url = True you will be able to use the @//// notation to reference
any URL in the app. The book code prevents that for backward compatibility.
autolinks=lambda link: expand_one(link,{}) enables OMEBED which means if
you do not have to markup links. Web2py will automatically embed, images
video and other objects using the OEMBED protocol.
Massimo
On Friday, 7 September 2012 07:01:21 UTC-5, Martin.Mulone wrote:
>
> http://blog.martinmulone.com.ar/post/996-static-blog-in-web2py
>
> --
> http://martinmulone.com.ar
>
--