# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - Link to a child page
"""

def execute(macro, text):
    url = '%s/%s'  % (macro.formatter.page.page_name, text)
    html = '''
	<a href="/%s">%s</a>
    ''' % (url, text)
    return html
