Still not quite clear. Does this need to be a "helper" (i.e., a class or
function called within a model or controller), or do you want to implement
this using web2py view templates? Does your example below represent just
part of a page or a whole page (and if a whole page, could it include the
full layout, including the <head> section of the document)?
Anthony
On Thursday, June 13, 2013 9:46:39 AM UTC-4, 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.