From 5df79c53745fde5d6c3340a2979b1429cd5892c1 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 8 Oct 2011 20:30:28 +0200 Subject: Initial import of htcd system 1.0 Signed-off-by: Henrik Rydberg --- htc/html.htc | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 htc/html.htc (limited to 'htc/html.htc') diff --git a/htc/html.htc b/htc/html.htc new file mode 100644 index 0000000..bd96870 --- /dev/null +++ b/htc/html.htc @@ -0,0 +1,152 @@ +\const{icons}{/icons} +\const{space}{ } +\const{lt}{<} +\const{gt}{>} +\def{indent}{x}{\for(i:=0)(i<\1)(i+=1){\space}} +\def{option}{?xx}{ + %{value}{desc} + + \2 +} +\def{select}{xx*}{ + %{name}{selected}.. + +} +\def{button}{?x}{ + %[option]{value} + +} +\def{variable}{xx}{ + %{name}{value} + +} +\def{radio}{xx?}{ + %{name}{value}[bool] + +} +\def{target}{x}{} +\def{href}{xx}{ + %{uri}{name} + \2 +} +\def{iref}{xx}{ + %{uri}{image} + +} +\def{form}{?x}{ + %{body} +
+ \1 +
+} +\def{form.multi}{?x}{ + %{body} +
+ \1 +
+} +\def{input}{xx?}{ + %{name}{size}[value] + +} +\def{passwd}{xx?}{ + %{name}{size}[value] + +} +\def{check}{xx?}{ + %{name}{value}[bool] + +} +\def{file}{?xx}{ + %{name}{size}[value] + +} +\def{text}{xxx?}{ + %{name}{row}{col}[value] + +} +\def{image}{?x}{ + %[options]{body} + +} +\def{table}{?x}{ + %[options]{body} + + \1 + +} +\def{th}{?x}{ + %[options]{body} + + \1 + +} +\def{tr}{?x}{ + %[options]{body} + + \1 + +} +\def{td}{?x}{ + %[options]{body} + \on.arg{1}{\1}{\space} +} +\def{font}{?x}{ + %[options]{body} + \1 +} +\def{ul}{?x}{ + %[options]{body} + + \1 + +} +\def{li}{?x}{ + %[options]{body} + \1 +} +\def{h1}{?x}{ + %[options]{body} + \1 +} +\def{h2}{?x}{ + %[options]{body} + \1 +} +\def{h3}{?x}{ + %[options]{body} + \1 +} +\def{h4}{?x}{ + %[options]{body} + \1 +} +\def{h5}{?x}{ + %[options]{body} + \1 +} +\def{h6}{?x}{ + %[options]{body} + \1 +} +\def{center}{?x}{ + %[options]{body} + \1 +} +\def{body}{?x}{ + %[options]{body} + + \1 + +} -- cgit v1.2.3