Commit 290f8559e559b44c37275de3a108d9cfc579b247

Authored by totoro
1 parent d130dc26

add helper for table with only one option and row

add helper for strong with only one CoreAtrrs
Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
... ... @@ -2237,6 +2237,8 @@ public define HTML_Off_Form span(Int i)
2237 2237 // <strong>
2238 2238 public define HTML_Off_Form strong(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("strong", attrs, content).
2239 2239 public define HTML_Off_Form strong(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("strong", attrs, [content]).
  2240 +public define HTML_Off_Form strong(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("strong", [attr], content).
  2241 +public define HTML_Off_Form strong(CoreAttrs attr, HTML_Off_Form content) = html_tag("strong", [attr], [content]).
2240 2242 public define HTML_Off_Form strong(List(HTML_Off_Form) content) = html_tag("strong", [], content).
2241 2243 public define HTML_Off_Form strong(HTML_Off_Form content) = html_tag("strong", [], [content]).
2242 2244  
... ... @@ -2406,6 +2408,14 @@ public define HTML_Off_Form
2406 2408 public define HTML_Off_Form
2407 2409 table
2408 2410 (
  2411 + Table_Option option,
  2412 + HTML_Row(HTML_Off_Form) row
  2413 + ) =
  2414 + table([option], empty, [row], empty).
  2415 +
  2416 +public define HTML_Off_Form
  2417 + table
  2418 + (
2409 2419 HTML_Header_Row(HTML_Off_Form) h_row,
2410 2420 List(HTML_Row(HTML_Off_Form)) rows
2411 2421 ) =
... ...