diff -r 5243c2a2f7f8 -r 7bdb766c2a4d svghmi/widgets_common.ysl2 --- a/svghmi/widgets_common.ysl2 Thu Apr 15 09:15:23 2021 +0200 +++ b/svghmi/widgets_common.ysl2 Sun May 02 23:01:08 2021 +0200 @@ -21,6 +21,26 @@ } }; +in xsl decl widget_class(%name, *clsname="%nameWidget", match="widget[@type='%name']", mode="widget_class") alias template { + | class `text **clsname` extends Widget{ + content; + | } +}; + +in xsl decl widget_defs(%name, match="widget[@type='%name']", mode="widget_defs") alias template { + param "hmi_element"; + content; +}; + +in xsl decl widget_page(%name, match="widget[@type='%name']", mode="widget_page") alias template { + param "page_desc"; + content; +}; + +decl gen_index_xhtml alias - { + content; +}; + template "svg:*", mode="hmi_widgets" { const "widget", "func:widget(@id)"; const "eltid","@id";