<%args> call_type = None <%python scope="init">

/examples/components/index.myt

Select the type of component call you would like. Press "submit" to enact the call upon the template "component.myt".

>None
>Plain
>Subrequest
>Soft Redirect
>Hard Redirect
<%python> if call_type=='plain': m.comp('component.myt') elif call_type=='subrequest': m.subexec('component.myt') elif call_type=='soft': m.send_redirect('component.myt', hard=False) elif call_type=='hard': m.send_redirect('component.myt', hard=True) else: m.write("didnt call component")
<%method title> Myghty Examples - Component Calling