0001    //
0002    //  Generated.swift
0003    //  Dynamo
0004    //
0005    //  Created by John Holdsworth on 20/06/2015.
0006    //  Copyright (c) 2015 John Holdsworth. All rights reserved.
0007    //
0008    //  $Id: //depot/Dynamo/Sources/Generated.swift#2 $
0009    //
0010    //  Repo: https://github.com/johnno1962/Dynamo
0011    //
0012    
0013    import Foundation
0014    
0015    // MARK: HTML Generator
0016    
0017    private func htmlEscape
Generated.swift:48
                        html += "='\(htmlEscape(value))'"
( attrValue: String ) -> String { 0018 return attrValue 0019 .stringByReplacingOccurrencesOfString( "&", withString: "&amp;" ) 0020 .stringByReplacingOccurrencesOfString( "'", withString: "&apos;" ) 0021 .stringByReplacingOccurrencesOfString( "<", withString: "&lt;" ) 0022 .stringByReplacingOccurrencesOfString( ">", withString: "&gt;" ) 0023 } 0024 0025 /** 0026 Generated class to ease creation of text for common HTML tags. tr( td( "text" ) ) 0027 is converted into "<tr><td>text</td></tr>". By convention if the contents are nil 0028 the tag is not closed. A optional set of attributes acn be passed as a dictionary: 0029 a( ["href"="htp://google.com"], "link text" ) becomes "<a href='http//google.com'>link text</a>". 0030 */ 0031 0032 public class HTMLApplicationSwiftlet
Example.swift:21
public class ExampleAppSwiftlet: HTMLApplicationSwiftlet {
Swiftlets.swift:205
public class SessionApplication: HTMLApplicationSwiftlet {
: ApplicationSwiftlet { 0033 0034 /** 0035 Opens and closes and HTHL tag with the specidied content. If the content is null the tag is only opened. 0036 */ 0037 0038 public final func tag
Generated.swift:72
        return tag( "!DOCTYPE", attributes: nil, content )
Generated.swift:75
        return tag( "!DOCTYPE", attributes: attributes, content )
Generated.swift:79
        return tag( "a", attributes: nil, content )
Generated.swift:82
        return tag( "a", attributes: attributes, content )
Generated.swift:88
        return tag( "abbr", attributes: nil, content )
Generated.swift:91
        return tag( "abbr", attributes: attributes, content )
Generated.swift:97
        return tag( "acronym", attributes: nil, content )
Generated.swift:100
        return tag( "acronym", attributes: attributes, content )
Generated.swift:106
        return tag( "address", attributes: nil, content )
Generated.swift:109
        return tag( "address", attributes: attributes, content )
Generated.swift:115
        return tag( "applet", attributes: nil, content )
Generated.swift:118
        return tag( "applet", attributes: attributes, content )
Generated.swift:124
        return tag( "area", attributes: nil, content )
Generated.swift:127
        return tag( "area", attributes: attributes, content )
Generated.swift:133
        return tag( "article", attributes: nil, content )
Generated.swift:136
        return tag( "article", attributes: attributes, content )
Generated.swift:142
        return tag( "aside", attributes: nil, content )
Generated.swift:145
        return tag( "aside", attributes: attributes, content )
Generated.swift:151
        return tag( "audio", attributes: nil, content )
Generated.swift:154
        return tag( "audio", attributes: attributes, content )
Generated.swift:160
        return tag( "b", attributes: nil, content )
Generated.swift:163
        return tag( "b", attributes: attributes, content )
Generated.swift:169
        return tag( "base", attributes: nil, content )
Generated.swift:172
        return tag( "base", attributes: attributes, content )
Generated.swift:178
        return tag( "basefont", attributes: nil, content )
Generated.swift:181
        return tag( "basefont", attributes: attributes, content )
Generated.swift:187
        return tag( "bdi", attributes: nil, content )
Generated.swift:190
        return tag( "bdi", attributes: attributes, content )
Generated.swift:196
        return tag( "bdo", attributes: nil, content )
Generated.swift:199
        return tag( "bdo", attributes: attributes, content )
Generated.swift:205
        return tag( "big", attributes: nil, content )
Generated.swift:208
        return tag( "big", attributes: attributes, content )
Generated.swift:214
        return tag( "blockquote", attributes: nil, content )
Generated.swift:217
        return tag( "blockquote", attributes: attributes, content )
Generated.swift:223
        return tag( "body", attributes: nil, content )
Generated.swift:226
        return tag( "body", attributes: attributes, content )
Generated.swift:232
        return tag( "br", attributes: nil, content )
Generated.swift:235
        return tag( "br", attributes: attributes, content )
Generated.swift:241
        return tag( "button", attributes: nil, content )
Generated.swift:244
        return tag( "button", attributes: attributes, content )
Generated.swift:250
        return tag( "canvas", attributes: nil, content )
Generated.swift:253
        return tag( "canvas", attributes: attributes, content )
Generated.swift:259
        return tag( "caption", attributes: nil, content )
Generated.swift:262
        return tag( "caption", attributes: attributes, content )
Generated.swift:268
        return tag( "center", attributes: nil, content )
Generated.swift:271
        return tag( "center", attributes: attributes, content )
Generated.swift:277
        return tag( "cite", attributes: nil, content )
Generated.swift:280
        return tag( "cite", attributes: attributes, content )
Generated.swift:286
        return tag( "code", attributes: nil, content )
Generated.swift:289
        return tag( "code", attributes: attributes, content )
Generated.swift:295
        return tag( "col", attributes: nil, content )
Generated.swift:298
        return tag( "col", attributes: attributes, content )
Generated.swift:304
        return tag( "colgroup", attributes: nil, content )
Generated.swift:307
        return tag( "colgroup", attributes: attributes, content )
Generated.swift:313
        return tag( "datalist", attributes: nil, content )
Generated.swift:316
        return tag( "datalist", attributes: attributes, content )
Generated.swift:322
        return tag( "dd", attributes: nil, content )
Generated.swift:325
        return tag( "dd", attributes: attributes, content )
Generated.swift:331
        return tag( "del", attributes: nil, content )
Generated.swift:334
        return tag( "del", attributes: attributes, content )
Generated.swift:340
        return tag( "details", attributes: nil, content )
Generated.swift:343
        return tag( "details", attributes: attributes, content )
Generated.swift:349
        return tag( "dfn", attributes: nil, content )
Generated.swift:352
        return tag( "dfn", attributes: attributes, content )
Generated.swift:358
        return tag( "dialog", attributes: nil, content )
Generated.swift:361
        return tag( "dialog", attributes: attributes, content )
Generated.swift:367
        return tag( "dir", attributes: nil, content )
Generated.swift:370
        return tag( "dir", attributes: attributes, content )
Generated.swift:376
        return tag( "div", attributes: nil, content )
Generated.swift:379
        return tag( "div", attributes: attributes, content )
Generated.swift:385
        return tag( "dl", attributes: nil, content )
Generated.swift:388
        return tag( "dl", attributes: attributes, content )
Generated.swift:394
        return tag( "dt", attributes: nil, content )
Generated.swift:397
        return tag( "dt", attributes: attributes, content )
Generated.swift:403
        return tag( "em", attributes: nil, content )
Generated.swift:406
        return tag( "em", attributes: attributes, content )
Generated.swift:412
        return tag( "embed", attributes: nil, content )
Generated.swift:415
        return tag( "embed", attributes: attributes, content )
Generated.swift:421
        return tag( "fieldset", attributes: nil, content )
Generated.swift:424
        return tag( "fieldset", attributes: attributes, content )
Generated.swift:430
        return tag( "figcaption", attributes: nil, content )
Generated.swift:433
        return tag( "figcaption", attributes: attributes, content )
Generated.swift:439
        return tag( "figure", attributes: nil, content )
Generated.swift:442
        return tag( "figure", attributes: attributes, content )
Generated.swift:448
        return tag( "font", attributes: nil, content )
Generated.swift:451
        return tag( "font", attributes: attributes, content )
Generated.swift:457
        return tag( "footer", attributes: nil, content )
Generated.swift:460
        return tag( "footer", attributes: attributes, content )
Generated.swift:466
        return tag( "form", attributes: nil, content )
Generated.swift:469
        return tag( "form", attributes: attributes, content )
Generated.swift:475
        return tag( "frame", attributes: nil, content )
Generated.swift:478
        return tag( "frame", attributes: attributes, content )
Generated.swift:484
        return tag( "frameset", attributes: nil, content )
Generated.swift:487
        return tag( "frameset", attributes: attributes, content )
Generated.swift:493
        return tag( "h1", attributes: nil, content )
Generated.swift:496
        return tag( "h1", attributes: attributes, content )
Generated.swift:502
        return tag( "h2", attributes: nil, content )
Generated.swift:505
        return tag( "h2", attributes: attributes, content )
Generated.swift:511
        return tag( "h3", attributes: nil, content )
Generated.swift:514
        return tag( "h3", attributes: attributes, content )
Generated.swift:520
        return tag( "h4", attributes: nil, content )
Generated.swift:523
        return tag( "h4", attributes: attributes, content )
Generated.swift:529
        return tag( "h5", attributes: nil, content )
Generated.swift:532
        return tag( "h5", attributes: attributes, content )
Generated.swift:538
        return tag( "h6", attributes: nil, content )
Generated.swift:541
        return tag( "h6", attributes: attributes, content )
Generated.swift:547
        return tag( "head", attributes: nil, content )
Generated.swift:550
        return tag( "head", attributes: attributes, content )
Generated.swift:556
        return tag( "header", attributes: nil, content )
Generated.swift:559
        return tag( "header", attributes: attributes, content )
Generated.swift:565
        return tag( "hr", attributes: nil, content )
Generated.swift:568
        return tag( "hr", attributes: attributes, content )
Generated.swift:574
        return tag( "html", attributes: nil, content )
Generated.swift:577
        return tag( "html", attributes: attributes, content )
Generated.swift:583
        return tag( "i", attributes: nil, content )
Generated.swift:586
        return tag( "i", attributes: attributes, content )
Generated.swift:592
        return tag( "iframe", attributes: nil, content )
Generated.swift:595
        return tag( "iframe", attributes: attributes, content )
Generated.swift:601
        return tag( "img", attributes: nil, content )
Generated.swift:604
        return tag( "img", attributes: attributes, content )
Generated.swift:610
        return tag( "input", attributes: nil, content )
Generated.swift:613
        return tag( "input", attributes: attributes, content )
Generated.swift:619
        return tag( "ins", attributes: nil, content )
Generated.swift:622
        return tag( "ins", attributes: attributes, content )
Generated.swift:628
        return tag( "kbd", attributes: nil, content )
Generated.swift:631
        return tag( "kbd", attributes: attributes, content )
Generated.swift:637
        return tag( "keygen", attributes: nil, content )
Generated.swift:640
        return tag( "keygen", attributes: attributes, content )
Generated.swift:646
        return tag( "label", attributes: nil, content )
Generated.swift:649
        return tag( "label", attributes: attributes, content )
Generated.swift:655
        return tag( "legend", attributes: nil, content )
Generated.swift:658
        return tag( "legend", attributes: attributes, content )
Generated.swift:664
        return tag( "li", attributes: nil, content )
Generated.swift:667
        return tag( "li", attributes: attributes, content )
Generated.swift:673
        return tag( "link", attributes: nil, content )
Generated.swift:676
        return tag( "link", attributes: attributes, content )
Generated.swift:682
        return tag( "main", attributes: nil, content )
Generated.swift:685
        return tag( "main", attributes: attributes, content )
Generated.swift:691
        return tag( "map", attributes: nil, content )
Generated.swift:694
        return tag( "map", attributes: attributes, content )
Generated.swift:700
        return tag( "mark", attributes: nil, content )
Generated.swift:703
        return tag( "mark", attributes: attributes, content )
Generated.swift:709
        return tag( "menu", attributes: nil, content )
Generated.swift:712
        return tag( "menu", attributes: attributes, content )
Generated.swift:718
        return tag( "menuitem", attributes: nil, content )
Generated.swift:721
        return tag( "menuitem", attributes: attributes, content )
Generated.swift:727
        return tag( "meta", attributes: nil, content )
Generated.swift:730
        return tag( "meta", attributes: attributes, content )
Generated.swift:736
        return tag( "meter", attributes: nil, content )
Generated.swift:739
        return tag( "meter", attributes: attributes, content )
Generated.swift:745
        return tag( "nav", attributes: nil, content )
Generated.swift:748
        return tag( "nav", attributes: attributes, content )
Generated.swift:754
        return tag( "noframes", attributes: nil, content )
Generated.swift:757
        return tag( "noframes", attributes: attributes, content )
Generated.swift:763
        return tag( "noscript", attributes: nil, content )
Generated.swift:766
        return tag( "noscript", attributes: attributes, content )
Generated.swift:772
        return tag( "object", attributes: nil, content )
Generated.swift:775
        return tag( "object", attributes: attributes, content )
Generated.swift:781
        return tag( "ol", attributes: nil, content )
Generated.swift:784
        return tag( "ol", attributes: attributes, content )
Generated.swift:790
        return tag( "optgroup", attributes: nil, content )
Generated.swift:793
        return tag( "optgroup", attributes: attributes, content )
Generated.swift:799
        return tag( "option", attributes: nil, content )
Generated.swift:802
        return tag( "option", attributes: attributes, content )
Generated.swift:808
        return tag( "output", attributes: nil, content )
Generated.swift:811
        return tag( "output", attributes: attributes, content )
Generated.swift:817
        return tag( "p", attributes: nil, content )
Generated.swift:820
        return tag( "p", attributes: attributes, content )
Generated.swift:826
        return tag( "param", attributes: nil, content )
Generated.swift:829
        return tag( "param", attributes: attributes, content )
Generated.swift:835
        return tag( "pre", attributes: nil, content )
Generated.swift:838
        return tag( "pre", attributes: attributes, content )
Generated.swift:844
        return tag( "progress", attributes: nil, content )
Generated.swift:847
        return tag( "progress", attributes: attributes, content )
Generated.swift:853
        return tag( "q", attributes: nil, content )
Generated.swift:856
        return tag( "q", attributes: attributes, content )
Generated.swift:862
        return tag( "rp", attributes: nil, content )
Generated.swift:865
        return tag( "rp", attributes: attributes, content )
Generated.swift:871
        return tag( "rt", attributes: nil, content )
Generated.swift:874
        return tag( "rt", attributes: attributes, content )
Generated.swift:880
        return tag( "ruby", attributes: nil, content )
Generated.swift:883
        return tag( "ruby", attributes: attributes, content )
Generated.swift:889
        return tag( "s", attributes: nil, content )
Generated.swift:892
        return tag( "s", attributes: attributes, content )
Generated.swift:898
        return tag( "samp", attributes: nil, content )
Generated.swift:901
        return tag( "samp", attributes: attributes, content )
Generated.swift:907
        return tag( "script", attributes: nil, content )
Generated.swift:910
        return tag( "script", attributes: attributes, content )
Generated.swift:916
        return tag( "section", attributes: nil, content )
Generated.swift:919
        return tag( "section", attributes: attributes, content )
Generated.swift:925
        return tag( "select", attributes: nil, content )
Generated.swift:928
        return tag( "select", attributes: attributes, content )
Generated.swift:934
        return tag( "small", attributes: nil, content )
Generated.swift:937
        return tag( "small", attributes: attributes, content )
Generated.swift:943
        return tag( "source", attributes: nil, content )
Generated.swift:946
        return tag( "source", attributes: attributes, content )
Generated.swift:952
        return tag( "span", attributes: nil, content )
Generated.swift:955
        return tag( "span", attributes: attributes, content )
Generated.swift:961
        return tag( "strike", attributes: nil, content )
Generated.swift:964
        return tag( "strike", attributes: attributes, content )
Generated.swift:970
        return tag( "strong", attributes: nil, content )
Generated.swift:973
        return tag( "strong", attributes: attributes, content )
Generated.swift:979
        return tag( "style", attributes: nil, content )
Generated.swift:982
        return tag( "style", attributes: attributes, content )
Generated.swift:988
        return tag( "sub", attributes: nil, content )
Generated.swift:991
        return tag( "sub", attributes: attributes, content )
Generated.swift:997
        return tag( "summary", attributes: nil, content )
Generated.swift:1000
        return tag( "summary", attributes: attributes, content )
Generated.swift:1006
        return tag( "sup", attributes: nil, content )
Generated.swift:1009
        return tag( "sup", attributes: attributes, content )
Generated.swift:1015
        return tag( "table", attributes: nil, content )
Generated.swift:1018
        return tag( "table", attributes: attributes, content )
Generated.swift:1024
        return tag( "tbody", attributes: nil, content )
Generated.swift:1027
        return tag( "tbody", attributes: attributes, content )
Generated.swift:1033
        return tag( "td", attributes: nil, content )
Generated.swift:1036
        return tag( "td", attributes: attributes, content )
Generated.swift:1042
        return tag( "textarea", attributes: nil, content )
Generated.swift:1045
        return tag( "textarea", attributes: attributes, content )
Generated.swift:1051
        return tag( "tfoot", attributes: nil, content )
Generated.swift:1054
        return tag( "tfoot", attributes: attributes, content )
Generated.swift:1060
        return tag( "th", attributes: nil, content )
Generated.swift:1063
        return tag( "th", attributes: attributes, content )
Generated.swift:1069
        return tag( "thead", attributes: nil, content )
Generated.swift:1072
        return tag( "thead", attributes: attributes, content )
Generated.swift:1078
        return tag( "time", attributes: nil, content )
Generated.swift:1081
        return tag( "time", attributes: attributes, content )
Generated.swift:1087
        return tag( "title", attributes: nil, content )
Generated.swift:1090
        return tag( "title", attributes: attributes, content )
Generated.swift:1096
        return tag( "tr", attributes: nil, content )
Generated.swift:1099
        return tag( "tr", attributes: attributes, content )
Generated.swift:1105
        return tag( "track", attributes: nil, content )
Generated.swift:1108
        return tag( "track", attributes: attributes, content )
Generated.swift:1114
        return tag( "tt", attributes: nil, content )
Generated.swift:1117
        return tag( "tt", attributes: attributes, content )
Generated.swift:1123
        return tag( "u", attributes: nil, content )
Generated.swift:1126
        return tag( "u", attributes: attributes, content )
Generated.swift:1132
        return tag( "ul", attributes: nil, content )
Generated.swift:1135
        return tag( "ul", attributes: attributes, content )
Generated.swift:1141
        return tag( "video", attributes: nil, content )
Generated.swift:1144
        return tag( "video", attributes: attributes, content )
Generated.swift:1150
        return tag( "wbr", attributes: nil, content )
Generated.swift:1153
        return tag( "wbr", attributes: attributes, content )
( name: String, attributes: [String: String]?, _ content: String? ) -> String { 0039 var html = "<"+name 0040 0041 if attributes != nil { 0042 for (name, value) in attributes! { 0043 html += " \(name)" 0044 #if os(Linux) 0045 html += "='\(htmlEscape(value))'" 0046 #else 0047 if value != NSNull() { 0048 html += "='\(htmlEscape(value))'" 0049 } 0050 #endif 0051 } 0052 } 0053 0054 if let content = content { 0055 if content == "" { 0056 html += "/>" 0057 } else { 0058 html += ">\(content)</\(name)>" 0059 } 0060 } else { 0061 html += ">" 0062 } 0063 0064 return html 0065 } 0066 0067 public final func backButton
Example.swift:79
        out.print( p() + backButton() )
() -> String { 0068 return button( ["onclick":"history.back();"], "Back" ) 0069 } 0070 0071 public final func _DOCTYPE( content: String? = "" ) -> String { 0072 return tag( "!DOCTYPE", attributes: nil, content ) 0073 } 0074 public final func _DOCTYPE( attributes: [String: String], _ content: String? = "" ) -> String { 0075 return tag( "!DOCTYPE", attributes: attributes, content ) 0076 } 0077 0078 public final func a( content: String? = "" ) -> String { 0079 return tag( "a", attributes: nil, content ) 0080 } 0081 public final func a( attributes: [String: String], _ content: String? = "" ) -> String { 0082 return tag( "a", attributes: attributes, content ) 0083 } 0084 public final func _a() -> String { 0085 return "</a>" 0086 } 0087 public final func abbr( content: String? = "" ) -> String { 0088 return tag( "abbr", attributes: nil, content ) 0089 } 0090 public final func abbr( attributes: [String: String], _ content: String? = "" ) -> String { 0091 return tag( "abbr", attributes: attributes, content ) 0092 } 0093 public final func _abbr() -> String { 0094 return "</abbr>" 0095 } 0096 public final func acronym( content: String? = "" ) -> String { 0097 return tag( "acronym", attributes: nil, content ) 0098 } 0099 public final func acronym( attributes: [String: String], _ content: String? = "" ) -> String { 0100 return tag( "acronym", attributes: attributes, content ) 0101 } 0102 public final func _acronym() -> String { 0103 return "</acronym>" 0104 } 0105 public final func address( content: String? = "" ) -> String { 0106 return tag( "address", attributes: nil, content ) 0107 } 0108 public final func address( attributes: [String: String], _ content: String? = "" ) -> String { 0109 return tag( "address", attributes: attributes, content ) 0110 } 0111 public final func _address() -> String { 0112 return "</address>" 0113 } 0114 public final func applet( content: String? = "" ) -> String { 0115 return tag( "applet", attributes: nil, content ) 0116 } 0117 public final func applet( attributes: [String: String], _ content: String? = "" ) -> String { 0118 return tag( "applet", attributes: attributes, content ) 0119 } 0120 public final func _applet() -> String { 0121 return "</applet>" 0122 } 0123 public final func area( content: String? = "" ) -> String { 0124 return tag( "area", attributes: nil, content ) 0125 } 0126 public final func area( attributes: [String: String], _ content: String? = "" ) -> String { 0127 return tag( "area", attributes: attributes, content ) 0128 } 0129 public final func _area() -> String { 0130 return "</area>" 0131 } 0132 public final func article( content: String? = "" ) -> String { 0133 return tag( "article", attributes: nil, content ) 0134 } 0135 public final func article( attributes: [String: String], _ content: String? = "" ) -> String { 0136 return tag( "article", attributes: attributes, content ) 0137 } 0138 public final func _article() -> String { 0139 return "</article>" 0140 } 0141 public final func aside( content: String? = "" ) -> String { 0142 return tag( "aside", attributes: nil, content ) 0143 } 0144 public final func aside( attributes: [String: String], _ content: String? = "" ) -> String { 0145 return tag( "aside", attributes: attributes, content ) 0146 } 0147 public final func _aside() -> String { 0148 return "</aside>" 0149 } 0150 public final func audio( content: String? = "" ) -> String { 0151 return tag( "audio", attributes: nil, content ) 0152 } 0153 public final func audio( attributes: [String: String], _ content: String? = "" ) -> String { 0154 return tag( "audio", attributes: attributes, content ) 0155 } 0156 public final func _audio() -> String { 0157 return "</audio>" 0158 } 0159 public final func b( content: String? = "" ) -> String { 0160 return tag( "b", attributes: nil, content ) 0161 } 0162 public final func b( attributes: [String: String], _ content: String? = "" ) -> String { 0163 return tag( "b", attributes: attributes, content ) 0164 } 0165 public final func _b() -> String { 0166 return "</b>" 0167 } 0168 public final func base( content: String? = "" ) -> String { 0169 return tag( "base", attributes: nil, content ) 0170 } 0171 public final func base( attributes: [String: String], _ content: String? = "" ) -> String { 0172 return tag( "base", attributes: attributes, content ) 0173 } 0174 public final func _base() -> String { 0175 return "</base>" 0176 } 0177 public final func basefont( content: String? = "" ) -> String { 0178 return tag( "basefont", attributes: nil, content ) 0179 } 0180 public final func basefont( attributes: [String: String], _ content: String? = "" ) -> String { 0181 return tag( "basefont", attributes: attributes, content ) 0182 } 0183 public final func _basefont() -> String { 0184 return "</basefont>" 0185 } 0186 public final func bdi( content: String? = "" ) -> String { 0187 return tag( "bdi", attributes: nil, content ) 0188 } 0189 public final func bdi( attributes: [String: String], _ content: String? = "" ) -> String { 0190 return tag( "bdi", attributes: attributes, content ) 0191 } 0192 public final func _bdi() -> String { 0193 return "</bdi>" 0194 } 0195 public final func bdo( content: String? = "" ) -> String { 0196 return tag( "bdo", attributes: nil, content ) 0197 } 0198 public final func bdo( attributes: [String: String], _ content: String? = "" ) -> String { 0199 return tag( "bdo", attributes: attributes, content ) 0200 } 0201 public final func _bdo() -> String { 0202 return "</bdo>" 0203 } 0204 public final func big( content: String? = "" ) -> String { 0205 return tag( "big", attributes: nil, content ) 0206 } 0207 public final func big( attributes: [String: String], _ content: String? = "" ) -> String { 0208 return tag( "big", attributes: attributes, content ) 0209 } 0210 public final func _big() -> String { 0211 return "</big>" 0212 } 0213 public final func blockquote( content: String? = "" ) -> String { 0214 return tag( "blockquote", attributes: nil, content ) 0215 } 0216 public final func blockquote( attributes: [String: String], _ content: String? = "" ) -> String { 0217 return tag( "blockquote", attributes: attributes, content ) 0218 } 0219 public final func _blockquote() -> String { 0220 return "</blockquote>" 0221 } 0222 public final func body
Example.swift:29
            style( "body, table { font: 10pt Arial" ) ) + body( nil ) )
( content: String? = "" ) -> String { 0223 return tag( "body", attributes: nil, content ) 0224 } 0225 public final func body( attributes: [String: String], _ content: String? = "" ) -> String { 0226 return tag( "body", attributes: attributes, content ) 0227 } 0228 public final func _body() -> String { 0229 return "</body>" 0230 } 0231 public final func br( content: String? = "" ) -> String { 0232 return tag( "br", attributes: nil, content ) 0233 } 0234 public final func br( attributes: [String: String], _ content: String? = "" ) -> String { 0235 return tag( "br", attributes: attributes, content ) 0236 } 0237 public final func _br() -> String { 0238 return "</br>" 0239 } 0240 public final func button( content: String? = "" ) -> String { 0241 return tag( "button", attributes: nil, content ) 0242 } 0243 public final func button
Generated.swift:68
        return button( ["onclick":"history.back();"], "Back" )
( attributes: [String: String], _ content: String? = "" ) -> String { 0244 return tag( "button", attributes: attributes, content ) 0245 } 0246 public final func _button() -> String { 0247 return "</button>" 0248 } 0249 public final func canvas( content: String? = "" ) -> String { 0250 return tag( "canvas", attributes: nil, content ) 0251 } 0252 public final func canvas( attributes: [String: String], _ content: String? = "" ) -> String { 0253 return tag( "canvas", attributes: attributes, content ) 0254 } 0255 public final func _canvas() -> String { 0256 return "</canvas>" 0257 } 0258 public final func caption( content: String? = "" ) -> String { 0259 return tag( "caption", attributes: nil, content ) 0260 } 0261 public final func caption( attributes: [String: String], _ content: String? = "" ) -> String { 0262 return tag( "caption", attributes: attributes, content ) 0263 } 0264 public final func _caption() -> String { 0265 return "</caption>" 0266 } 0267 public final func center( content: String? = "" ) -> String { 0268 return tag( "center", attributes: nil, content ) 0269 } 0270 public final func center( attributes: [String: String], _ content: String? = "" ) -> String { 0271 return tag( "center", attributes: attributes, content ) 0272 } 0273 public final func _center() -> String { 0274 return "</center>" 0275 } 0276 public final func cite( content: String? = "" ) -> String { 0277 return tag( "cite", attributes: nil, content ) 0278 } 0279 public final func cite( attributes: [String: String], _ content: String? = "" ) -> String { 0280 return tag( "cite", attributes: attributes, content ) 0281 } 0282 public final func _cite() -> String { 0283 return "</cite>" 0284 } 0285 public final func code( content: String? = "" ) -> String { 0286 return tag( "code", attributes: nil, content ) 0287 } 0288 public final func code( attributes: [String: String], _ content: String? = "" ) -> String { 0289 return tag( "code", attributes: attributes, content ) 0290 } 0291 public final func _code() -> String { 0292 return "</code>" 0293 } 0294 public final func col( content: String? = "" ) -> String { 0295 return tag( "col", attributes: nil, content ) 0296 } 0297 public final func col( attributes: [String: String], _ content: String? = "" ) -> String { 0298 return tag( "col", attributes: attributes, content ) 0299 } 0300 public final func _col() -> String { 0301 return "</col>" 0302 } 0303 public final func colgroup( content: String? = "" ) -> String { 0304 return tag( "colgroup", attributes: nil, content ) 0305 } 0306 public final func colgroup( attributes: [String: String], _ content: String? = "" ) -> String { 0307 return tag( "colgroup", attributes: attributes, content ) 0308 } 0309 public final func _colgroup() -> String { 0310 return "</colgroup>" 0311 } 0312 public final func datalist( content: String? = "" ) -> String { 0313 return tag( "datalist", attributes: nil, content ) 0314 } 0315 public final func datalist( attributes: [String: String], _ content: String? = "" ) -> String { 0316 return tag( "datalist", attributes: attributes, content ) 0317 } 0318 public final func _datalist() -> String { 0319 return "</datalist>" 0320 } 0321 public final func dd( content: String? = "" ) -> String { 0322 return tag( "dd", attributes: nil, content ) 0323 } 0324 public final func dd( attributes: [String: String], _ content: String? = "" ) -> String { 0325 return tag( "dd", attributes: attributes, content ) 0326 } 0327 public final func _dd() -> String { 0328 return "</dd>" 0329 } 0330 public final func del( content: String? = "" ) -> String { 0331 return tag( "del", attributes: nil, content ) 0332 } 0333 public final func del( attributes: [String: String], _ content: String? = "" ) -> String { 0334 return tag( "del", attributes: attributes, content ) 0335 } 0336 public final func _del() -> String { 0337 return "</del>" 0338 } 0339 public final func details( content: String? = "" ) -> String { 0340 return tag( "details", attributes: nil, content ) 0341 } 0342 public final func details( attributes: [String: String], _ content: String? = "" ) -> String { 0343 return tag( "details", attributes: attributes, content ) 0344 } 0345 public final func _details() -> String { 0346 return "</details>" 0347 } 0348 public final func dfn( content: String? = "" ) -> String { 0349 return tag( "dfn", attributes: nil, content ) 0350 } 0351 public final func dfn( attributes: [String: String], _ content: String? = "" ) -> String { 0352 return tag( "dfn", attributes: attributes, content ) 0353 } 0354 public final func _dfn() -> String { 0355 return "</dfn>" 0356 } 0357 public final func dialog( content: String? = "" ) -> String { 0358 return tag( "dialog", attributes: nil, content ) 0359 } 0360 public final func dialog( attributes: [String: String], _ content: String? = "" ) -> String { 0361 return tag( "dialog", attributes: attributes, content ) 0362 } 0363 public final func _dialog() -> String { 0364 return "</dialog>" 0365 } 0366 public final func dir( content: String? = "" ) -> String { 0367 return tag( "dir", attributes: nil, content ) 0368 } 0369 public final func dir( attributes: [String: String], _ content: String? = "" ) -> String { 0370 return tag( "dir", attributes: attributes, content ) 0371 } 0372 public final func _dir() -> String { 0373 return "</dir>" 0374 } 0375 public final func div( content: String? = "" ) -> String { 0376 return tag( "div", attributes: nil, content ) 0377 } 0378 public final func div( attributes: [String: String], _ content: String? = "" ) -> String { 0379 return tag( "div", attributes: attributes, content ) 0380 } 0381 public final func _div() -> String { 0382 return "</div>" 0383 } 0384 public final func dl( content: String? = "" ) -> String { 0385 return tag( "dl", attributes: nil, content ) 0386 } 0387 public final func dl( attributes: [String: String], _ content: String? = "" ) -> String { 0388 return tag( "dl", attributes: attributes, content ) 0389 } 0390 public final func _dl() -> String { 0391 return "</dl>" 0392 } 0393 public final func dt( content: String? = "" ) -> String { 0394 return tag( "dt", attributes: nil, content ) 0395 } 0396 public final func dt( attributes: [String: String], _ content: String? = "" ) -> String { 0397 return tag( "dt", attributes: attributes, content ) 0398 } 0399 public final func _dt() -> String { 0400 return "</dt>" 0401 } 0402 public final func em( content: String? = "" ) -> String { 0403 return tag( "em", attributes: nil, content ) 0404 } 0405 public final func em( attributes: [String: String], _ content: String? = "" ) -> String { 0406 return tag( "em", attributes: attributes, content ) 0407 } 0408 public final func _em() -> String { 0409 return "</em>" 0410 } 0411 public final func embed( content: String? = "" ) -> String { 0412 return tag( "embed", attributes: nil, content ) 0413 } 0414 public final func embed( attributes: [String: String], _ content: String? = "" ) -> String { 0415 return tag( "embed", attributes: attributes, content ) 0416 } 0417 public final func _embed() -> String { 0418 return "</embed>" 0419 } 0420 public final func fieldset( content: String? = "" ) -> String { 0421 return tag( "fieldset", attributes: nil, content ) 0422 } 0423 public final func fieldset( attributes: [String: String], _ content: String? = "" ) -> String { 0424 return tag( "fieldset", attributes: attributes, content ) 0425 } 0426 public final func _fieldset() -> String { 0427 return "</fieldset>" 0428 } 0429 public final func figcaption( content: String? = "" ) -> String { 0430 return tag( "figcaption", attributes: nil, content ) 0431 } 0432 public final func figcaption( attributes: [String: String], _ content: String? = "" ) -> String { 0433 return tag( "figcaption", attributes: attributes, content ) 0434 } 0435 public final func _figcaption() -> String { 0436 return "</figcaption>" 0437 } 0438 public final func figure( content: String? = "" ) -> String { 0439 return tag( "figure", attributes: nil, content ) 0440 } 0441 public final func figure( attributes: [String: String], _ content: String? = "" ) -> String { 0442 return tag( "figure", attributes: attributes, content ) 0443 } 0444 public final func _figure() -> String { 0445 return "</figure>" 0446 } 0447 public final func font( content: String? = "" ) -> String { 0448 return tag( "font", attributes: nil, content ) 0449 } 0450 public final func font( attributes: [String: String], _ content: String? = "" ) -> String { 0451 return tag( "font", attributes: attributes, content ) 0452 } 0453 public final func _font() -> String { 0454 return "</font>" 0455 } 0456 public final func footer( content: String? = "" ) -> String { 0457 return tag( "footer", attributes: nil, content ) 0458 } 0459 public final func footer( attributes: [String: String], _ content: String? = "" ) -> String { 0460 return tag( "footer", attributes: attributes, content ) 0461 } 0462 public final func _footer() -> String { 0463 return "</footer>" 0464 } 0465 public final func form( content: String? = "" ) -> String { 0466 return tag( "form", attributes: nil, content ) 0467 } 0468 public final func form
Example.swift:34
                form( ["method":"GET"],
Example.swift:49
            out.print( h3( "Enter table values" ) + form( ["method": "POST"], nil ) + table( nil ) )
( attributes: [String: String], _ content: String? = "" ) -> String { 0469 return tag( "form", attributes: attributes, content ) 0470 } 0471 public final func _form
Example.swift:61
            out.print( _table()+p()+input( ["type": "submit", "value": "Complete"] )+_form() )
() -> String { 0472 return "</form>" 0473 } 0474 public final func frame( content: String? = "" ) -> String { 0475 return tag( "frame", attributes: nil, content ) 0476 } 0477 public final func frame( attributes: [String: String], _ content: String? = "" ) -> String { 0478 return tag( "frame", attributes: attributes, content ) 0479 } 0480 public final func _frame() -> String { 0481 return "</frame>" 0482 } 0483 public final func frameset( content: String? = "" ) -> String { 0484 return tag( "frameset", attributes: nil, content ) 0485 } 0486 public final func frameset( attributes: [String: String], _ content: String? = "" ) -> String { 0487 return tag( "frameset", attributes: attributes, content ) 0488 } 0489 public final func _frameset() -> String { 0490 return "</frameset>" 0491 } 0492 public final func h1( content: String? = "" ) -> String { 0493 return tag( "h1", attributes: nil, content ) 0494 } 0495 public final func h1( attributes: [String: String], _ content: String? = "" ) -> String { 0496 return tag( "h1", attributes: attributes, content ) 0497 } 0498 public final func _h1() -> String { 0499 return "</h1>" 0500 } 0501 public final func h2
Example.swift:46
                out.print( h2( title ) )
( content: String? = "" ) -> String { 0502 return tag( "h2", attributes: nil, content ) 0503 } 0504 public final func h2( attributes: [String: String], _ content: String? = "" ) -> String { 0505 return tag( "h2", attributes: attributes, content ) 0506 } 0507 public final func _h2() -> String { 0508 return "</h2>" 0509 } 0510 public final func h3
Example.swift:32
            out.print( h3( "Quick table creation example" ) )
Example.swift:49
            out.print( h3( "Enter table values" ) + form( ["method": "POST"], nil ) + table( nil ) )
Example.swift:64
            out.print( h3( "Your table:" ) + table( ["border":"1"], nil ) )
( content: String? = "" ) -> String { 0511 return tag( "h3", attributes: nil, content ) 0512 } 0513 public final func h3( attributes: [String: String], _ content: String? = "" ) -> String { 0514 return tag( "h3", attributes: attributes, content ) 0515 } 0516 public final func _h3() -> String { 0517 return "</h3>" 0518 } 0519 public final func h4( content: String? = "" ) -> String { 0520 return tag( "h4", attributes: nil, content ) 0521 } 0522 public final func h4( attributes: [String: String], _ content: String? = "" ) -> String { 0523 return tag( "h4", attributes: attributes, content ) 0524 } 0525 public final func _h4() -> String { 0526 return "</h4>" 0527 } 0528 public final func h5( content: String? = "" ) -> String { 0529 return tag( "h5", attributes: nil, content ) 0530 } 0531 public final func h5( attributes: [String: String], _ content: String? = "" ) -> String { 0532 return tag( "h5", attributes: attributes, content ) 0533 } 0534 public final func _h5() -> String { 0535 return "</h5>" 0536 } 0537 public final func h6( content: String? = "" ) -> String { 0538 return tag( "h6", attributes: nil, content ) 0539 } 0540 public final func h6( attributes: [String: String], _ content: String? = "" ) -> String { 0541 return tag( "h6", attributes: attributes, content ) 0542 } 0543 public final func _h6() -> String { 0544 return "</h6>" 0545 } 0546 public final func head
Example.swift:28
        out.print( html( nil ) + head( title( "Table Example" ) +
( content: String? = "" ) -> String { 0547 return tag( "head", attributes: nil, content ) 0548 } 0549 public final func head( attributes: [String: String], _ content: String? = "" ) -> String { 0550 return tag( "head", attributes: attributes, content ) 0551 } 0552 public final func _head() -> String { 0553 return "</head>" 0554 } 0555 public final func header( content: String? = "" ) -> String { 0556 return tag( "header", attributes: nil, content ) 0557 } 0558 public final func header( attributes: [String: String], _ content: String? = "" ) -> String { 0559 return tag( "header", attributes: attributes, content ) 0560 } 0561 public final func _header() -> String { 0562 return "</header>" 0563 } 0564 public final func hr( content: String? = "" ) -> String { 0565 return tag( "hr", attributes: nil, content ) 0566 } 0567 public final func hr( attributes: [String: String], _ content: String? = "" ) -> String { 0568 return tag( "hr", attributes: attributes, content ) 0569 } 0570 public final func _hr() -> String { 0571 return "</hr>" 0572 } 0573 public final func html
Example.swift:28
        out.print( html( nil ) + head( title( "Table Example" ) +
( content: String? = "" ) -> String { 0574 return tag( "html", attributes: nil, content ) 0575 } 0576 public final func html( attributes: [String: String], _ content: String? = "" ) -> String { 0577 return tag( "html", attributes: attributes, content ) 0578 } 0579 public final func _html() -> String { 0580 return "</html>" 0581 } 0582 public final func i( content: String? = "" ) -> String { 0583 return tag( "i", attributes: nil, content ) 0584 } 0585 public final func i( attributes: [String: String], _ content: String? = "" ) -> String { 0586 return tag( "i", attributes: attributes, content ) 0587 } 0588 public final func _i() -> String { 0589 return "</i>" 0590 } 0591 public final func iframe( content: String? = "" ) -> String { 0592 return tag( "iframe", attributes: nil, content ) 0593 } 0594 public final func iframe( attributes: [String: String], _ content: String? = "" ) -> String { 0595 return tag( "iframe", attributes: attributes, content ) 0596 } 0597 public final func _iframe() -> String { 0598 return "</iframe>" 0599 } 0600 public final func img( content: String? = "" ) -> String { 0601 return tag( "img", attributes: nil, content ) 0602 } 0603 public final func img( attributes: [String: String], _ content: String? = "" ) -> String { 0604 return tag( "img", attributes: attributes, content ) 0605 } 0606 public final func _img() -> String { 0607 return "</img>" 0608 } 0609 public final func input( content: String? = "" ) -> String { 0610 return tag( "input", attributes: nil, content ) 0611 } 0612 public final func input
Example.swift:36
                        tr( td( "Title: " ) + td( input( ["type":"textfield", "name":"title"] ) ) ) +
Example.swift:37
                        tr( td( "Width: " ) + td( input( ["type":"textfield", "name":"width"] ) ) ) +
Example.swift:38
                        tr( td( "Height: " ) + td( input( ["type":"textfield", "name":"height"] ) ) ) +
Example.swift:39
                        tr( td( ["colspan":"2"], input( ["type": "submit", "value": "Generate"] )) )
Example.swift:55
                        out.print( td( input( ["type":"textfield", "name":"x\(x)y\(y)", "size":"5"] ) ) )
Example.swift:61
            out.print( _table()+p()+input( ["type": "submit", "value": "Complete"] )+_form() )
( attributes: [String: String], _ content: String? = "" ) -> String { 0613 return tag( "input", attributes: attributes, content ) 0614 } 0615 public final func _input() -> String { 0616 return "</input>" 0617 } 0618 public final func ins( content: String? = "" ) -> String { 0619 return tag( "ins", attributes: nil, content ) 0620 } 0621 public final func ins( attributes: [String: String], _ content: String? = "" ) -> String { 0622 return tag( "ins", attributes: attributes, content ) 0623 } 0624 public final func _ins() -> String { 0625 return "</ins>" 0626 } 0627 public final func kbd( content: String? = "" ) -> String { 0628 return tag( "kbd", attributes: nil, content ) 0629 } 0630 public final func kbd( attributes: [String: String], _ content: String? = "" ) -> String { 0631 return tag( "kbd", attributes: attributes, content ) 0632 } 0633 public final func _kbd() -> String { 0634 return "</kbd>" 0635 } 0636 public final func keygen( content: String? = "" ) -> String { 0637 return tag( "keygen", attributes: nil, content ) 0638 } 0639 public final func keygen( attributes: [String: String], _ content: String? = "" ) -> String { 0640 return tag( "keygen", attributes: attributes, content ) 0641 } 0642 public final func _keygen() -> String { 0643 return "</keygen>" 0644 } 0645 public final func label( content: String? = "" ) -> String { 0646 return tag( "label", attributes: nil, content ) 0647 } 0648 public final func label( attributes: [String: String], _ content: String? = "" ) -> String { 0649 return tag( "label", attributes: attributes, content ) 0650 } 0651 public final func _label() -> String { 0652 return "</label>" 0653 } 0654 public final func legend( content: String? = "" ) -> String { 0655 return tag( "legend", attributes: nil, content ) 0656 } 0657 public final func legend( attributes: [String: String], _ content: String? = "" ) -> String { 0658 return tag( "legend", attributes: attributes, content ) 0659 } 0660 public final func _legend() -> String { 0661 return "</legend>" 0662 } 0663 public final func li( content: String? = "" ) -> String { 0664 return tag( "li", attributes: nil, content ) 0665 } 0666 public final func li( attributes: [String: String], _ content: String? = "" ) -> String { 0667 return tag( "li", attributes: attributes, content ) 0668 } 0669 public final func _li() -> String { 0670 return "</li>" 0671 } 0672 public final func link( content: String? = "" ) -> String { 0673 return tag( "link", attributes: nil, content ) 0674 } 0675 public final func link( attributes: [String: String], _ content: String? = "" ) -> String { 0676 return tag( "link", attributes: attributes, content ) 0677 } 0678 public final func _link() -> String { 0679 return "</link>" 0680 } 0681 public final func main( content: String? = "" ) -> String { 0682 return tag( "main", attributes: nil, content ) 0683 } 0684 public final func main( attributes: [String: String], _ content: String? = "" ) -> String { 0685 return tag( "main", attributes: attributes, content ) 0686 } 0687 public final func _main() -> String { 0688 return "</main>" 0689 } 0690 public final func map( content: String? = "" ) -> String { 0691 return tag( "map", attributes: nil, content ) 0692 } 0693 public final func map( attributes: [String: String], _ content: String? = "" ) -> String { 0694 return tag( "map", attributes: attributes, content ) 0695 } 0696 public final func _map() -> String { 0697 return "</map>" 0698 } 0699 public final func mark( content: String? = "" ) -> String { 0700 return tag( "mark", attributes: nil, content ) 0701 } 0702 public final func mark( attributes: [String: String], _ content: String? = "" ) -> String { 0703 return tag( "mark", attributes: attributes, content ) 0704 } 0705 public final func _mark() -> String { 0706 return "</mark>" 0707 } 0708 public final func menu( content: String? = "" ) -> String { 0709 return tag( "menu", attributes: nil, content ) 0710 } 0711 public final func menu( attributes: [String: String], _ content: String? = "" ) -> String { 0712 return tag( "menu", attributes: attributes, content ) 0713 } 0714 public final func _menu() -> String { 0715 return "</menu>" 0716 } 0717 public final func menuitem( content: String? = "" ) -> String { 0718 return tag( "menuitem", attributes: nil, content ) 0719 } 0720 public final func menuitem( attributes: [String: String], _ content: String? = "" ) -> String { 0721 return tag( "menuitem", attributes: attributes, content ) 0722 } 0723 public final func _menuitem() -> String { 0724 return "</menuitem>" 0725 } 0726 public final func meta( content: String? = "" ) -> String { 0727 return tag( "meta", attributes: nil, content ) 0728 } 0729 public final func meta( attributes: [String: String], _ content: String? = "" ) -> String { 0730 return tag( "meta", attributes: attributes, content ) 0731 } 0732 public final func _meta() -> String { 0733 return "</meta>" 0734 } 0735 public final func meter( content: String? = "" ) -> String { 0736 return tag( "meter", attributes: nil, content ) 0737 } 0738 public final func meter( attributes: [String: String], _ content: String? = "" ) -> String { 0739 return tag( "meter", attributes: attributes, content ) 0740 } 0741 public final func _meter() -> String { 0742 return "</meter>" 0743 } 0744 public final func nav( content: String? = "" ) -> String { 0745 return tag( "nav", attributes: nil, content ) 0746 } 0747 public final func nav( attributes: [String: String], _ content: String? = "" ) -> String { 0748 return tag( "nav", attributes: attributes, content ) 0749 } 0750 public final func _nav() -> String { 0751 return "</nav>" 0752 } 0753 public final func noframes( content: String? = "" ) -> String { 0754 return tag( "noframes", attributes: nil, content ) 0755 } 0756 public final func noframes( attributes: [String: String], _ content: String? = "" ) -> String { 0757 return tag( "noframes", attributes: attributes, content ) 0758 } 0759 public final func _noframes() -> String { 0760 return "</noframes>" 0761 } 0762 public final func noscript( content: String? = "" ) -> String { 0763 return tag( "noscript", attributes: nil, content ) 0764 } 0765 public final func noscript( attributes: [String: String], _ content: String? = "" ) -> String { 0766 return tag( "noscript", attributes: attributes, content ) 0767 } 0768 public final func _noscript() -> String { 0769 return "</noscript>" 0770 } 0771 public final func object( content: String? = "" ) -> String { 0772 return tag( "object", attributes: nil, content ) 0773 } 0774 public final func object( attributes: [String: String], _ content: String? = "" ) -> String { 0775 return tag( "object", attributes: attributes, content ) 0776 } 0777 public final func _object() -> String { 0778 return "</object>" 0779 } 0780 public final func ol( content: String? = "" ) -> String { 0781 return tag( "ol", attributes: nil, content ) 0782 } 0783 public final func ol( attributes: [String: String], _ content: String? = "" ) -> String { 0784 return tag( "ol", attributes: attributes, content ) 0785 } 0786 public final func _ol() -> String { 0787 return "</ol>" 0788 } 0789 public final func optgroup( content: String? = "" ) -> String { 0790 return tag( "optgroup", attributes: nil, content ) 0791 } 0792 public final func optgroup( attributes: [String: String], _ content: String? = "" ) -> String { 0793 return tag( "optgroup", attributes: attributes, content ) 0794 } 0795 public final func _optgroup() -> String { 0796 return "</optgroup>" 0797 } 0798 public final func option( content: String? = "" ) -> String { 0799 return tag( "option", attributes: nil, content ) 0800 } 0801 public final func option( attributes: [String: String], _ content: String? = "" ) -> String { 0802 return tag( "option", attributes: attributes, content ) 0803 } 0804 public final func _option() -> String { 0805 return "</option>" 0806 } 0807 public final func output( content: String? = "" ) -> String { 0808 return tag( "output", attributes: nil, content ) 0809 } 0810 public final func output( attributes: [String: String], _ content: String? = "" ) -> String { 0811 return tag( "output", attributes: attributes, content ) 0812 } 0813 public final func _output() -> String { 0814 return "</output>" 0815 } 0816 public final func p
Example.swift:61
            out.print( _table()+p()+input( ["type": "submit", "value": "Complete"] )+_form() )
Example.swift:79
        out.print( p() + backButton() )
( content: String? = "" ) -> String { 0817 return tag( "p", attributes: nil, content ) 0818 } 0819 public final func p( attributes: [String: String], _ content: String? = "" ) -> String { 0820 return tag( "p", attributes: attributes, content ) 0821 } 0822 public final func _p() -> String { 0823 return "</p>" 0824 } 0825 public final func param( content: String? = "" ) -> String { 0826 return tag( "param", attributes: nil, content ) 0827 } 0828 public final func param( attributes: [String: String], _ content: String? = "" ) -> String { 0829 return tag( "param", attributes: attributes, content ) 0830 } 0831 public final func _param() -> String { 0832 return "</param>" 0833 } 0834 public final func pre( content: String? = "" ) -> String { 0835 return tag( "pre", attributes: nil, content ) 0836 } 0837 public final func pre( attributes: [String: String], _ content: String? = "" ) -> String { 0838 return tag( "pre", attributes: attributes, content ) 0839 } 0840 public final func _pre() -> String { 0841 return "</pre>" 0842 } 0843 public final func progress( content: String? = "" ) -> String { 0844 return tag( "progress", attributes: nil, content ) 0845 } 0846 public final func progress( attributes: [String: String], _ content: String? = "" ) -> String { 0847 return tag( "progress", attributes: attributes, content ) 0848 } 0849 public final func _progress() -> String { 0850 return "</progress>" 0851 } 0852 public final func q( content: String? = "" ) -> String { 0853 return tag( "q", attributes: nil, content ) 0854 } 0855 public final func q( attributes: [String: String], _ content: String? = "" ) -> String { 0856 return tag( "q", attributes: attributes, content ) 0857 } 0858 public final func _q() -> String { 0859 return "</q>" 0860 } 0861 public final func rp( content: String? = "" ) -> String { 0862 return tag( "rp", attributes: nil, content ) 0863 } 0864 public final func rp( attributes: [String: String], _ content: String? = "" ) -> String { 0865 return tag( "rp", attributes: attributes, content ) 0866 } 0867 public final func _rp() -> String { 0868 return "</rp>" 0869 } 0870 public final func rt( content: String? = "" ) -> String { 0871 return tag( "rt", attributes: nil, content ) 0872 } 0873 public final func rt( attributes: [String: String], _ content: String? = "" ) -> String { 0874 return tag( "rt", attributes: attributes, content ) 0875 } 0876 public final func _rt() -> String { 0877 return "</rt>" 0878 } 0879 public final func ruby( content: String? = "" ) -> String { 0880 return tag( "ruby", attributes: nil, content ) 0881 } 0882 public final func ruby( attributes: [String: String], _ content: String? = "" ) -> String { 0883 return tag( "ruby", attributes: attributes, content ) 0884 } 0885 public final func _ruby() -> String { 0886 return "</ruby>" 0887 } 0888 public final func s( content: String? = "" ) -> String { 0889 return tag( "s", attributes: nil, content ) 0890 } 0891 public final func s( attributes: [String: String], _ content: String? = "" ) -> String { 0892 return tag( "s", attributes: attributes, content ) 0893 } 0894 public final func _s() -> String { 0895 return "</s>" 0896 } 0897 public final func samp( content: String? = "" ) -> String { 0898 return tag( "samp", attributes: nil, content ) 0899 } 0900 public final func samp( attributes: [String: String], _ content: String? = "" ) -> String { 0901 return tag( "samp", attributes: attributes, content ) 0902 } 0903 public final func _samp() -> String { 0904 return "</samp>" 0905 } 0906 public final func script( content: String? = "" ) -> String { 0907 return tag( "script", attributes: nil, content ) 0908 } 0909 public final func script( attributes: [String: String], _ content: String? = "" ) -> String { 0910 return tag( "script", attributes: attributes, content ) 0911 } 0912 public final func _script() -> String { 0913 return "</script>" 0914 } 0915 public final func section( content: String? = "" ) -> String { 0916 return tag( "section", attributes: nil, content ) 0917 } 0918 public final func section( attributes: [String: String], _ content: String? = "" ) -> String { 0919 return tag( "section", attributes: attributes, content ) 0920 } 0921 public final func _section() -> String { 0922 return "</section>" 0923 } 0924 public final func Select( content: String? = "" ) -> String { 0925 return tag( "select", attributes: nil, content ) 0926 } 0927 public final func select( attributes: [String: String], _ content: String? = "" ) -> String { 0928 return tag( "select", attributes: attributes, content ) 0929 } 0930 public final func _select() -> String { 0931 return "</select>" 0932 } 0933 public final func small( content: String? = "" ) -> String { 0934 return tag( "small", attributes: nil, content ) 0935 } 0936 public final func small( attributes: [String: String], _ content: String? = "" ) -> String { 0937 return tag( "small", attributes: attributes, content ) 0938 } 0939 public final func _small() -> String { 0940 return "</small>" 0941 } 0942 public final func source( content: String? = "" ) -> String { 0943 return tag( "source", attributes: nil, content ) 0944 } 0945 public final func source( attributes: [String: String], _ content: String? = "" ) -> String { 0946 return tag( "source", attributes: attributes, content ) 0947 } 0948 public final func _source() -> String { 0949 return "</source>" 0950 } 0951 public final func span( content: String? = "" ) -> String { 0952 return tag( "span", attributes: nil, content ) 0953 } 0954 public final func span( attributes: [String: String], _ content: String? = "" ) -> String { 0955 return tag( "span", attributes: attributes, content ) 0956 } 0957 public final func _span() -> String { 0958 return "</span>" 0959 } 0960 public final func strike( content: String? = "" ) -> String { 0961 return tag( "strike", attributes: nil, content ) 0962 } 0963 public final func strike( attributes: [String: String], _ content: String? = "" ) -> String { 0964 return tag( "strike", attributes: attributes, content ) 0965 } 0966 public final func _strike() -> String { 0967 return "</strike>" 0968 } 0969 public final func strong( content: String? = "" ) -> String { 0970 return tag( "strong", attributes: nil, content ) 0971 } 0972 public final func strong( attributes: [String: String], _ content: String? = "" ) -> String { 0973 return tag( "strong", attributes: attributes, content ) 0974 } 0975 public final func _strong() -> String { 0976 return "</strong>" 0977 } 0978 public final func style
Example.swift:29
            style( "body, table { font: 10pt Arial" ) ) + body( nil ) )
( content: String? = "" ) -> String { 0979 return tag( "style", attributes: nil, content ) 0980 } 0981 public final func style( attributes: [String: String], _ content: String? = "" ) -> String { 0982 return tag( "style", attributes: attributes, content ) 0983 } 0984 public final func _style() -> String { 0985 return "</style>" 0986 } 0987 public final func sub( content: String? = "" ) -> String { 0988 return tag( "sub", attributes: nil, content ) 0989 } 0990 public final func sub( attributes: [String: String], _ content: String? = "" ) -> String { 0991 return tag( "sub", attributes: attributes, content ) 0992 } 0993 public final func _sub() -> String { 0994 return "</sub>" 0995 } 0996 public final func summary( content: String? = "" ) -> String { 0997 return tag( "summary", attributes: nil, content ) 0998 } 0999 public final func summary( attributes: [String: String], _ content: String? = "" ) -> String { 1000 return tag( "summary", attributes: attributes, content ) 1001 } 1002 public final func _summary() -> String { 1003 return "</summary>" 1004 } 1005 public final func sup( content: String? = "" ) -> String { 1006 return tag( "sup", attributes: nil, content ) 1007 } 1008 public final func sup( attributes: [String: String], _ content: String? = "" ) -> String { 1009 return tag( "sup", attributes: attributes, content ) 1010 } 1011 public final func _sup() -> String { 1012 return "</sup>" 1013 } 1014 public final func table
Example.swift:35
                    table(
Example.swift:49
            out.print( h3( "Enter table values" ) + form( ["method": "POST"], nil ) + table( nil ) )
( content: String? = "" ) -> String { 1015 return tag( "table", attributes: nil, content ) 1016 } 1017 public final func table
Example.swift:64
            out.print( h3( "Your table:" ) + table( ["border":"1"], nil ) )
( attributes: [String: String], _ content: String? = "" ) -> String { 1018 return tag( "table", attributes: attributes, content ) 1019 } 1020 public final func _table
Example.swift:61
            out.print( _table()+p()+input( ["type": "submit", "value": "Complete"] )+_form() )
Example.swift:76
            out.print( _table() )
() -> String { 1021 return "</table>" 1022 } 1023 public final func tbody( content: String? = "" ) -> String { 1024 return tag( "tbody", attributes: nil, content ) 1025 } 1026 public final func tbody( attributes: [String: String], _ content: String? = "" ) -> String { 1027 return tag( "tbody", attributes: attributes, content ) 1028 } 1029 public final func _tbody() -> String { 1030 return "</tbody>" 1031 } 1032 public final func td
Example.swift:36
                        tr( td( "Title: " ) + td( input( ["type":"textfield", "name":"title"] ) ) ) +
Example.swift:36
                        tr( td( "Title: " ) + td( input( ["type":"textfield", "name":"title"] ) ) ) +
Example.swift:37
                        tr( td( "Width: " ) + td( input( ["type":"textfield", "name":"width"] ) ) ) +
Example.swift:37
                        tr( td( "Width: " ) + td( input( ["type":"textfield", "name":"width"] ) ) ) +
Example.swift:38
                        tr( td( "Height: " ) + td( input( ["type":"textfield", "name":"height"] ) ) ) +
Example.swift:38
                        tr( td( "Height: " ) + td( input( ["type":"textfield", "name":"height"] ) ) ) +
Example.swift:55
                        out.print( td( input( ["type":"textfield", "name":"x\(x)y\(y)", "size":"5"] ) ) )
Example.swift:70
                        out.print( td( parameters["x\(x)y\(y)"]! ) )
( content: String? = "" ) -> String { 1033 return tag( "td", attributes: nil, content ) 1034 } 1035 public final func td
Example.swift:39
                        tr( td( ["colspan":"2"], input( ["type": "submit", "value": "Generate"] )) )
( attributes: [String: String], _ content: String? = "" ) -> String { 1036 return tag( "td", attributes: attributes, content ) 1037 } 1038 public final func _td() -> String { 1039 return "</td>" 1040 } 1041 public final func textarea( content: String? = "" ) -> String { 1042 return tag( "textarea", attributes: nil, content ) 1043 } 1044 public final func textarea( attributes: [String: String], _ content: String? = "" ) -> String { 1045 return tag( "textarea", attributes: attributes, content ) 1046 } 1047 public final func _textarea() -> String { 1048 return "</textarea>" 1049 } 1050 public final func tfoot( content: String? = "" ) -> String { 1051 return tag( "tfoot", attributes: nil, content ) 1052 } 1053 public final func tfoot( attributes: [String: String], _ content: String? = "" ) -> String { 1054 return tag( "tfoot", attributes: attributes, content ) 1055 } 1056 public final func _tfoot() -> String { 1057 return "</tfoot>" 1058 } 1059 public final func th( content: String? = "" ) -> String { 1060 return tag( "th", attributes: nil, content ) 1061 } 1062 public final func th( attributes: [String: String], _ content: String? = "" ) -> String { 1063 return tag( "th", attributes: attributes, content ) 1064 } 1065 public final func _th() -> String { 1066 return "</th>" 1067 } 1068 public final func thead( content: String? = "" ) -> String { 1069 return tag( "thead", attributes: nil, content ) 1070 } 1071 public final func thead( attributes: [String: String], _ content: String? = "" ) -> String { 1072 return tag( "thead", attributes: attributes, content ) 1073 } 1074 public final func _thead() -> String { 1075 return "</thead>" 1076 } 1077 public final func time( content: String? = "" ) -> String { 1078 return tag( "time", attributes: nil, content ) 1079 } 1080 public final func time( attributes: [String: String], _ content: String? = "" ) -> String { 1081 return tag( "time", attributes: attributes, content ) 1082 } 1083 public final func _time() -> String { 1084 return "</time>" 1085 } 1086 public final func title
Example.swift:28
        out.print( html( nil ) + head( title( "Table Example" ) +
( content: String? = "" ) -> String { 1087 return tag( "title", attributes: nil, content ) 1088 } 1089 public final func title( attributes: [String: String], _ content: String? = "" ) -> String { 1090 return tag( "title", attributes: attributes, content ) 1091 } 1092 public final func _title() -> String { 1093 return "</title>" 1094 } 1095 public final func tr
Example.swift:36
                        tr( td( "Title: " ) + td( input( ["type":"textfield", "name":"title"] ) ) ) +
Example.swift:37
                        tr( td( "Width: " ) + td( input( ["type":"textfield", "name":"width"] ) ) ) +
Example.swift:38
                        tr( td( "Height: " ) + td( input( ["type":"textfield", "name":"height"] ) ) ) +
Example.swift:39
                        tr( td( ["colspan":"2"], input( ["type": "submit", "value": "Generate"] )) )
Example.swift:53
                    out.print( tr( nil ) )
Example.swift:68
                    out.print( tr( nil ) )
( content: String? = "" ) -> String { 1096 return tag( "tr", attributes: nil, content ) 1097 } 1098 public final func tr( attributes: [String: String], _ content: String? = "" ) -> String { 1099 return tag( "tr", attributes: attributes, content ) 1100 } 1101 public final func _tr
Example.swift:57
                    out.print( _tr() )
Example.swift:72
                    out.print( _tr() )
() -> String { 1102 return "</tr>" 1103 } 1104 public final func track( content: String? = "" ) -> String { 1105 return tag( "track", attributes: nil, content ) 1106 } 1107 public final func track( attributes: [String: String], _ content: String? = "" ) -> String { 1108 return tag( "track", attributes: attributes, content ) 1109 } 1110 public final func _track() -> String { 1111 return "</track>" 1112 } 1113 public final func tt( content: String? = "" ) -> String { 1114 return tag( "tt", attributes: nil, content ) 1115 } 1116 public final func tt( attributes: [String: String], _ content: String? = "" ) -> String { 1117 return tag( "tt", attributes: attributes, content ) 1118 } 1119 public final func _tt() -> String { 1120 return "</tt>" 1121 } 1122 public final func u( content: String? = "" ) -> String { 1123 return tag( "u", attributes: nil, content ) 1124 } 1125 public final func u( attributes: [String: String], _ content: String? = "" ) -> String { 1126 return tag( "u", attributes: attributes, content ) 1127 } 1128 public final func _u() -> String { 1129 return "</u>" 1130 } 1131 public final func ul( content: String? = "" ) -> String { 1132 return tag( "ul", attributes: nil, content ) 1133 } 1134 public final func ul( attributes: [String: String], _ content: String? = "" ) -> String { 1135 return tag( "ul", attributes: attributes, content ) 1136 } 1137 public final func _ul() -> String { 1138 return "</ul>" 1139 } 1140 public final func video( content: String? = "" ) -> String { 1141 return tag( "video", attributes: nil, content ) 1142 } 1143 public final func video( attributes: [String: String], _ content: String? = "" ) -> String { 1144 return tag( "video", attributes: attributes, content ) 1145 } 1146 public final func _video() -> String { 1147 return "</video>" 1148 } 1149 public final func wbr( content: String? = "" ) -> String { 1150 return tag( "wbr", attributes: nil, content ) 1151 } 1152 public final func wbr( attributes: [String: String], _ content: String? = "" ) -> String { 1153 return tag( "wbr", attributes: attributes, content ) 1154 } 1155 public final func _wbr() -> String { 1156 return "</wbr>" 1157 } 1158 1159 } 1160