How about putting all your mixture of html+web2py stuff into another view
and then call it within your controller with
my_tricky_html = response.render(view,vars)
return dict(.... my_tricky_html=my_tricky_html ....)
and then use that in your next view? Hope you get the idea.
On Thursday, 13 June 2013 14:46:39 UTC+1, David Marko wrote:
>
> My bad that I cant explain it better :-(
>
> Going to try to explain with this simple example:
>
> I need to generalize/convert this html in helper:
>
> <div class='fancy-box'>
> <div class='header' id='fancy-header'>
> **header simple text**
> </div>
> <div class='body' id='fancy-body'>
> **body html with web2py codes like URL() etc. **
> </div>
> <div class='footer' id='fancy-footer'>
> **footer simple text**
> </div>
> </div>
>
> All ** text ** are variables so I have to send it to helper.
>
> I need some syntax like this (I know that it doesnt exist but how to
> accomplish it using web2py tools?? ):
>
> {{block-fancy header="header text" footer='Footer text' }}
>
> <table>... </table>
> <a href='{{=URL()}}' >textlink </a>
>
> {{end}}
>
> ... so header and footer parameters are placed into particular div tags in
> template above and block content is used as body html in template above ...
>
>
>
>
--
---
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].
For more options, visit https://groups.google.com/groups/opt_out.