Coverage for kTemplate/elements.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.1.0, created at 2023-02-19 17:08 +0800

1"""create tagged element functions for common elements 

2 

3non-common or custom elements can be created by `element` function in main.py 

4 

5pre created tagged element functions are: 

6a, 

7article, 

8aside, 

9audio, 

10b, 

11base, 

12blockquote, 

13body, 

14br, 

15button, 

16canvas, 

17caption, 

18cite, 

19code, 

20col, 

21colgroup, 

22data, 

23dd, 

24div, 

25dl, 

26dt, 

27em, 

28fieldset, 

29figcaption, 

30figure, 

31figure, 

32footer, 

33frame, 

34frameset, 

35h1, 

36h2, 

37h3, 

38h4, 

39h5, 

40h6, 

41head, 

42header, 

43hr, 

44html, 

45i, 

46iframe, 

47img, 

48input, 

49label, 

50legend, 

51li, 

52link, 

53main, 

54menu, 

55meta, 

56nav, 

57object, 

58ol, 

59option, 

60p, 

61param, 

62picture, 

63pre, 

64q, 

65script, 

66section, 

67select, 

68small, 

69source, 

70span, 

71strongtable, 

72style, 

73sub, 

74sup, 

75tbody, 

76td, 

77template, 

78textarea, 

79tfoot, 

80th, 

81thead, 

82timeform, 

83title, 

84tr, 

85track, 

86ul, 

87video 

88""" 

89 

90from .main import create_elements 

91 

92 

93DOCTYPE = "<!DOCTYPE html>" 

94"""HTML5 preamble""" 

95 

96[ 

97 a, 

98 article, 

99 aside, 

100 audio, 

101 b, 

102 core, 

103 blockquote, 

104 body, 

105 br, 

106 button, 

107 canvas, 

108 caption, 

109 cite, 

110 code, 

111 col, 

112 colgroup, 

113 data, 

114 dd, 

115 div, 

116 dl, 

117 dt, 

118 em, 

119 fieldset, 

120 figcaption, 

121 figure, 

122 figure, 

123 footer, 

124 frame, 

125 frameset, 

126 h1, 

127 h2, 

128 h3, 

129 h4, 

130 h5, 

131 h6, 

132 head, 

133 header, 

134 hr, 

135 html, 

136 i, 

137 iframe, 

138 img, 

139 input, 

140 label, 

141 legend, 

142 li, 

143 link, 

144 main, 

145 menu, 

146 meta, 

147 nav, 

148 object, 

149 ol, 

150 option, 

151 p, 

152 param, 

153 picture, 

154 pre, 

155 q, 

156 script, 

157 section, 

158 select, 

159 small, 

160 source, 

161 span, 

162 strongtable, 

163 style, 

164 sub, 

165 sup, 

166 tbody, 

167 td, 

168 template, 

169 textarea, 

170 tfoot, 

171 th, 

172 thead, 

173 timeform, 

174 title, 

175 tr, 

176 track, 

177 ul, 

178 video, 

179] = create_elements( 

180 """ 

181 a, 

182 article, 

183 aside, 

184 audio, 

185 b, 

186 base, 

187 blockquote, 

188 body, 

189 br, 

190 button, 

191 canvas, 

192 caption, 

193 cite, 

194 code, 

195 col, 

196 colgroup, 

197 data, 

198 dd, 

199 div, 

200 dl, 

201 dt, 

202 em, 

203 fieldset, 

204 figcaption, 

205 figure, 

206 figure, 

207 footer, 

208 frame, 

209 frameset, 

210 h1, 

211 h2, 

212 h3, 

213 h4, 

214 h5, 

215 h6, 

216 head, 

217 header, 

218 hr, 

219 html, 

220 i, 

221 iframe, 

222 img, 

223 input, 

224 label, 

225 legend, 

226 li, 

227 link, 

228 main, 

229 menu, 

230 meta, 

231 nav, 

232 object, 

233 ol, 

234 option, 

235 p, 

236 param, 

237 picture, 

238 pre, 

239 q, 

240 script, 

241 section, 

242 select, 

243 small, 

244 source, 

245 span, 

246 strongtable, 

247 style, 

248 sub, 

249 sup, 

250 tbody, 

251 td, 

252 template, 

253 textarea, 

254 tfoot, 

255 th, 

256 thead, 

257 timeform, 

258 title, 

259 tr, 

260 track, 

261 ul, 

262 video 

263""" 

264)