diff --git a/web/making_a_web_site.anubis b/web/making_a_web_site.anubis index 4d7c893..92ed4e0 100644 --- a/web/making_a_web_site.anubis +++ b/web/making_a_web_site.anubis @@ -1476,10 +1476,11 @@ public define CoreAttrs init(String value)= attr("value", encode_HTML_entities(v //-- BEGIN of preset type /// hidden value -public define HTML hidden(List(CoreAttrs) attrs, String _name, String _value, String form) = input([type(hidden), name(_name), value(encode_HTML_entities(_value)), attr("form", form) . attrs]). -public define HTML hidden(CoreAttrs attr, String name, String value, String form) = hidden([attr], name, value, form). -public define HTML hidden(String name, String value, String form) = hidden([], name, value, form). -public define HTML hidden(String _name, String _value) = input([type(hidden), name(_name), value(encode_HTML_entities(_value))]). +public define HTML hidden(List(CoreAttrs) attrs) = input([type(hidden) . attrs]). +public define HTML hidden(List(CoreAttrs) attrs, String _name, String _value, String form) = input([type(hidden), name(_name), value(encode_HTML_entities(_value)), attr("form", form) . attrs]). +public define HTML hidden(CoreAttrs attr, String name, String value, String form) = hidden([attr], name, value, form). +public define HTML hidden(String name, String value, String form) = hidden([], name, value, form). +public define HTML hidden(String _name, String _value) = input([type(hidden), name(_name), value(encode_HTML_entities(_value))]). public define HTML text_input(List(CoreAttrs) options, HTML_Label label, HTML_Id _id, WebArgName wan, InitialValue init, Int w) = sequence([ @@ -1852,18 +1853,19 @@ public define HTML th = h //public define CoreAttrs rowspan(Int value) = attr("rowspan", to_String(value)). //public define CoreAttrs headers(String header_id) = attr("headers", header_id). -public define HTML td(List(CoreAttrs) attrs, List(HTML) content) = html_tag("td", attrs, content). -public define HTML td(List(CoreAttrs) attrs, HTML content) = html_tag("td", attrs, [content]). -public define HTML td(CoreAttrs attr, List(HTML) content) = html_tag("td", [attr], content). -public define HTML td(CoreAttrs attr, HTML content) = html_tag("td", [attr], [content]). -public define HTML td(List(HTML) content) = html_tag("td", content). -public define HTML td(HTML content) = html_tag("td", [content]). -public define HTML td(List(CoreAttrs) attrs, String string) = html_tag("td", attrs, [text(string)]). -public define HTML td(CoreAttrs attr, String string) = html_tag("td", [attr], [text(string)]). -public define HTML td(String string) = html_tag("td", [text(string)]). -public define HTML td(List(CoreAttrs) attrs, Int i) = html_tag("td", attrs, [text(to_decimal(i))]). -public define HTML td(CoreAttrs attr, Int i) = html_tag("td", [attr], [text(to_decimal(i))]). -public define HTML td(Int i) = html_tag("td", [text(to_decimal(i))]). +public define HTML td(List(CoreAttrs) attrs, List(HTML) content) = html_tag("td", attrs, content). +public define HTML td(List(CoreAttrs) attrs, HTML content) = html_tag("td", attrs, [content]). +public define HTML td(CoreAttrs attr, List(HTML) content) = html_tag("td", [attr], content). +public define HTML td(CoreAttrs attr, HTML content) = html_tag("td", [attr], [content]). +public define HTML td(CoreAttrs attr) = html_tag("td", [attr], []). +public define HTML td(List(HTML) content) = html_tag("td", [], content). +public define HTML td(HTML content) = html_tag("td", [], [content]). +public define HTML td(List(CoreAttrs) attrs, String string) = html_tag("td", attrs, [text(string)]). +public define HTML td(CoreAttrs attr, String string) = html_tag("td", [attr], [text(string)]). +public define HTML td(String string) = html_tag("td", [], [text(string)]). +public define HTML td(List(CoreAttrs) attrs, Int i) = html_tag("td", attrs, [text(to_decimal(i))]). +public define HTML td(CoreAttrs attr, Int i) = html_tag("td", [attr], [text(to_decimal(i))]). +public define HTML td(Int i) = html_tag("td", [], [text(to_decimal(i))]). //