git.s-ol.nu mmm / e5633b5
text/html as default web view s-ol 3 years ago
6 changed file(s) with 20 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
116116 index = @store\get_index path, depth
117117 convert 'table', facet.type, index, fileder, facet.name
118118 else
119 if facet.type == '?'
120 facet.type = 'text/html'
121 current = fileder
122 while current
123 if type = current\get '_web_view: type'
124 facet.type = type\match '^%s*(.-)%s*$'
125 break
126
127 if current.path == ''
128 break
129
130 path, _ = dir_base current.path
131 current = root\walk path
132
119133 if facet.type == 'text/html+interactive'
120134 @handle_interactive fileder, facet
121135 else if base = facet.type\match '^DEBUG %-> (.*)'
176190 facet = if facet == '' and (not type or type == '') and method ~= 'GET' and method ~= 'HEAD'
177191 nil
178192 else
179 type or= 'text/html+interactive'
193 type or= '?'
180194 type = type\match '%s*(.*)'
181195 Key facet, type
182196
44 div {
55 h3 link_to @
66 ul for child in *@children
7 continue if child\get 'hidden: bool'
78 desc = child\gett 'description: mmm/dom'
89 li (link_to child), ': ', desc
910 }