I see the problem. MARKMIN as a markup language does not assume you have
web2py nor web2py.js. It allows you to expose any function you want such as
@{<funcname>:<parameters>} but you have to define the function. You can do:
def component(text):
items = text.split('/')
controller, function, args = items[0], items[1], items[2:]
return LOAD(controller, function, args=args, ajax=True).xml()
html = MARMIN(text, url=True,environment={'component':component})
Did I answer the question?
On Wednesday, 10 October 2012 21:28:07 UTC-5, Jose wrote:
>
>
>
> El miércoles, 10 de octubre de 2012 22:56:23 UTC-3, Massimo Di Pierro
> escribió:
>>
>> I do not understand the question. auth.wiki uses markmin. I think they
>> both use the same syntax. Both of the examples below should work with the
>> right MARKMIN parameters.
>>
>
> Hi Massimo
>
> I'm using the trunk version.
>
> Specifically I want to embed a LOAD('c', 'f', args)
>
> I understand from what I read in other threads I can do the following:
>
> @{component:controller/function/args).
>
> I have this:
>
> @///fotografias/2
>
> @{component:/turista/fotografias/2}
>
> in the first case @///function/args, I get the full url, that is what I
> expect, but in second case @{component:/c/f/a}, I get the raw string
> (@{component:/turista/fotografias/2})
>
> in the view I have:
>
> {{=MARKMIN(row.data, url=True)}}
>
> Got that?
>
> Jose
>
>
--