Commit 8d1c12d2a282a46535c66589032d3f127ffe267c

Authored by totoro
1 parent 73f7b692

add some helper for :

- span
- button
- div
which allow to accept only one CareAttrs instead a list.
Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
... ... @@ -2058,6 +2058,8 @@ public define HTML_Off_Form br(List(CoreAttrs) attrs)
2058 2058 // <button>
2059 2059 public define HTML_Off_Form button(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("button", attrs, content).
2060 2060 public define HTML_Off_Form button(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("button", attrs, [content]).
  2061 +public define HTML_Off_Form button(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("button", [attr], content).
  2062 +public define HTML_Off_Form button(CoreAttrs attr, HTML_Off_Form content) = html_tag("button", [attr], [content]).
2061 2063 public define HTML_Off_Form button(List(HTML_Off_Form) content) = html_tag("button", [], content).
2062 2064 public define HTML_Off_Form button(HTML_Off_Form content) = html_tag("button", [], [content]).
2063 2065  
... ... @@ -2070,6 +2072,8 @@ public define HTML_Off_Form datalist(HTML_Off_Form content)
2070 2072 // <div>
2071 2073 public define HTML_Off_Form div(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("div", attrs, content).
2072 2074 public define HTML_Off_Form div(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("div", attrs, [content]).
  2075 +public define HTML_Off_Form div(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("div", [attr], content).
  2076 +public define HTML_Off_Form div(CoreAttrs attr, HTML_Off_Form content) = html_tag("div", [attr], [content]).
2073 2077 public define HTML_Off_Form div(List(HTML_Off_Form) content) = html_tag("div", [], content).
2074 2078 public define HTML_Off_Form div(HTML_Off_Form content) = html_tag("div", [], [content]).
2075 2079 public define HTML_Off_Form div(List(CoreAttrs) attrs) = html_tag("div", attrs, [empty]).
... ... @@ -2190,6 +2194,8 @@ public define HTML_Off_Form select(HTML_Off_Form content)
2190 2194 // <span>
2191 2195 public define HTML_Off_Form span(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("span", attrs, content).
2192 2196 public define HTML_Off_Form span(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("span", attrs, [content]).
  2197 +public define HTML_Off_Form span(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("span", [attr], content).
  2198 +public define HTML_Off_Form span(CoreAttrs attr, HTML_Off_Form content) = html_tag("span", [attr], [content]).
2193 2199 public define HTML_Off_Form span(List(HTML_Off_Form) content) = html_tag("span", [], content).
2194 2200 public define HTML_Off_Form span(HTML_Off_Form content) = html_tag("span", [], [content]).
2195 2201 public define HTML_Off_Form span(Int i) = html_tag("span", [], [text(to_decimal(i))]).
... ...