HTML can be passed as string of course, but I cant imagine how to do it for 
html, which is large html block with table, links etc. cca. 300 lines which 
is created and maintained by our designer.

Dne čtvrtek, 13. června 2013 13:53:43 UTC+2 villas napsal(a):
>
> I don't understand: 
>
>    - why html cannot be passed as a large string; generally speaking, 
>    html is a large string :)
>    - why you need to use a new widget or helper to make the correct markup
>
> Hopefully someone else will know what you mean and help you directly.  If 
> not,  please post a more specific example of what your original data looks 
> like and what you would like to achieve.
>
>
>
> On Thursday, 13 June 2013 11:37:42 UTC+1, David Marko wrote:
>>
>> Problem is not in HTML but how to send large html into widget/helper. For 
>> example if you would like to use DIV() helper, you have a problemwhen 
>> having a large content, which must be editable/visible in html editor, you 
>> cant pass it into helper as a string. Here my note about {{block }} command 
>> as an example.
>>
>> Dne čtvrtek, 13. června 2013 12:14:03 UTC+2 villas napsal(a):
>>>
>>> Did you try to use the XML() helper to use raw html in your views?
>>>
>>>
>>> On Thursday, 13 June 2013 08:40:31 UTC+1, David Marko wrote:
>>>>
>>>> How to create a custom helper that accepts body as long multiline html? 
>>>> For example helper that can create a div like the one below, as parameters 
>>>> I can provide header as simple text and content body as html, which can be 
>>>> quite long/complete. I can't use common pattern e.g. {{=DIV(B(I("hello ", 
>>>> "<world>"))), _class="myclass")}} becuase I can't send body as long html. 
>>>> I 
>>>> need something more like {{block fancy_div}} body text {{end}} but have to 
>>>> be able to send aditional parameters. The purpose of this is to create a 
>>>> set of helpers/widgets, that can help me to work with this page layout 
>>>> http://easy-themes.tk/themes/preview/ace/elements.html ... so for each 
>>>> component of this layout I could be able to create some widget/helper.
>>>>
>>>>
>>>> <div class='fancy-box'>
>>>> <div class='header'>
>>>>   header
>>>> </div>
>>>> <div class='body'>
>>>>   html body
>>>> </div>
>>>> </div>
>>>>
>>>>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to