Gotcha! Thanks for the hint Anthony. Controller:
a=PluginMModal(title='Hello World',content='give this a try!',close="close",width=30,height=30,id='59d38b19-05aa-4125-a19b-6e17069cd873') ... a.link(...) View: {{extend 'layout.html'}} {{=form}} {{a=PluginMModal(title='Hello World',content='give this a try!',close="close",width=30,height=30,id='59d38b19-05aa-4125-a19b-6e17069cd873')}} {{=a}} It seems I have to declare the plugin in both controller and view. No big deal for as long as it works. :)