[web2py] Re: putting in a custom render function with T.M()

2014-08-26 Thread Calvin
Thanks for clarifying, Massimo. MARKMIN will have to do for now. On Monday, 25 August 2014 23:18:43 UTC+8, Massimo Di Pierro wrote: At this time T.M does not support extra. You can do: MARKMIN(hello ``you``:custom, extra=dict(custom=lambda x: SPAN(x, _style=font-size:0.8em))) Do you need

[web2py] Re: putting in a custom render function with T.M()

2014-08-25 Thread Massimo Di Pierro
At this time T.M does not support extra. You can do: MARKMIN(hello ``you``:custom, extra=dict(custom=lambda x: SPAN(x, _style=font-size:0.8em))) Do you need to internationalize this? On Friday, 22 August 2014 10:33:28 UTC-5, Calvin wrote: Hi Massimo Here's an example: T.M(hello

[web2py] Re: putting in a custom render function with T.M()

2014-08-22 Thread Calvin
Hi Massimo Here's an example: T.M(hello ``you``:custom, extra=dict(custom=lambda x: SPAN(x, _style= font-size:0.8em))) which throws *** TypeError: M() got an unexpected keyword argument 'extra' Calvin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: putting in a custom render function with T.M()

2014-08-20 Thread Massimo Di Pierro
Can you show us your code. On Wednesday, 20 August 2014 10:06:19 UTC-5, Calvin wrote: Hi I am wondering if it is possible to customise the render function within a ``code`` segment with T.M(). I have tried adding the extra keyword as documented in the Markmin documentation but this is