Commit ace9e4480012dd9a3a8bb3348f27e1f272ce10af

Authored by totoro
1 parent e759f375

add more helper in span

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
... ... @@ -2239,7 +2239,9 @@ public define HTML_Off_Form span(CoreAttrs attr, HTML_Off_Form content)
2239 2239 public define HTML_Off_Form span(List(HTML_Off_Form) content) = html_tag("span", [], content).
2240 2240 public define HTML_Off_Form span(HTML_Off_Form content) = html_tag("span", [], [content]).
2241 2241 public define HTML_Off_Form span(Int i) = html_tag("span", [], [text(to_decimal(i))]).
2242   -
  2242 +public define HTML_Off_Form span(List(CoreAttrs) attrs, String s) = html_tag("span", attrs, [text(s)]).
  2243 +public define HTML_Off_Form span(CoreAttrs attr, String s) = html_tag("span", [attr],[text(s)]).
  2244 +public define HTML_Off_Form span(String s) = html_tag("span", [], [text(s)]).
2243 2245 // <strong>
2244 2246 public define HTML_Off_Form strong(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("strong", attrs, content).
2245 2247 public define HTML_Off_Form strong(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("strong", attrs, [content]).
... ...