hkoba / yatt_lite

YATT::Lite - Template with "use strict"
Other
5 stars 0 forks source link

Allow yatt:action to be default handler in .yatt files #179

Closed hkoba closed 4 years ago

hkoba commented 5 years ago

Syntax (in *.yatt):

<!yatt:action "">
 ... perl code...

This way, you can define name-less (default) action instead of default widget (<!yatt:args>).

Having both <!yatt:action ''> and <!yatt:args> should raise error. Having implicit widget (without <!yatt:args>) and <!yatt:action ''> should raise error too.