From ace9e4480012dd9a3a8bb3348f27e1f272ce10af Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 29 Sep 2018 23:57:37 +0200 Subject: [PATCH] add more helper in span --- web/CXM_making_a_web_site.anubis | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/CXM_making_a_web_site.anubis b/web/CXM_making_a_web_site.anubis index 5059426..f3a4970 100644 --- a/web/CXM_making_a_web_site.anubis +++ b/web/CXM_making_a_web_site.anubis @@ -2239,7 +2239,9 @@ public define HTML_Off_Form span(CoreAttrs attr, HTML_Off_Form content) public define HTML_Off_Form span(List(HTML_Off_Form) content) = html_tag("span", [], content). public define HTML_Off_Form span(HTML_Off_Form content) = html_tag("span", [], [content]). public define HTML_Off_Form span(Int i) = html_tag("span", [], [text(to_decimal(i))]). - +public define HTML_Off_Form span(List(CoreAttrs) attrs, String s) = html_tag("span", attrs, [text(s)]). +public define HTML_Off_Form span(CoreAttrs attr, String s) = html_tag("span", [attr],[text(s)]). +public define HTML_Off_Form span(String s) = html_tag("span", [], [text(s)]). // public define HTML_Off_Form strong(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("strong", attrs, content). public define HTML_Off_Form strong(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("strong", attrs, [content]). -- libgit2 0.21.4