I can do something like this...
mytext = """
``default/get_cms_article/4``:component
"""
def __component(text):
items = text.split('/')
controller, function, args = items[0], items[1], items[2:]
return LOAD(controller, function, args=args, ajax=True).xml()
MARKMIN_ENV = dict(
component = lambda value: __component(value)
)
MARKMIN(mytext,url=True,extra=MARKMIN_ENV)
This uses LOAD. What is recommended for loading components from other
domains? I think I have used JSON for that in the past, but maybe there
are other ways, I am not sure that I am using the currently recommended
methods for Markmin.
Thanks!
>
--
---
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.