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.