Changeset 9284
- Timestamp:
- 05/02/08 22:27:10 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
playground/trunk/modules/playground/MOD-INF/builder.js
r8973 r9284 17 17 }); 18 18 if (!("template" in data) || data.template == null || data.template == "") { 19 data.template = guessTemp alte(format);19 data.template = guessTemplate(format); 20 20 } 21 21 … … 139 139 var settings; 140 140 var format; 141 var content; 141 142 execute2(request, response, function(temp) { 142 143 settings = repository.readFile(id, temp, "template-settings"); … … 146 147 template = repository.getProperty(id, temp, "template"); 147 148 } 149 content = repository.readFile(id, temp, "json"); 148 150 }); 149 151 title = (title != null && title != "") ? title : "Untitled Playground"; 150 152 template = (template != null && template != "") ? template : guessTemplate(format); 151 153 content = (content != null && content != "") ? buildNoscript(content) : ""; 154 152 155 var doc = butterfly.constructDomFromTemplate( 153 156 { styles: "templates/" + template + "/styles.css", … … 155 158 contextPath: butterfly.getContextPath(request,true), 156 159 title: title, 157 pg: id 160 pg: id, 161 content: content 158 162 }, 159 163 "MOD-INF/exhibit-builder/publish-mode-composition.vt" … … 332 336 } 333 337 338 function buildNoscript(json) { 339 // generate tabular view of items 340 // perhaps it's time for a babel HTML table exporter? 341 return ""; 342 } playground/trunk/modules/playground/MOD-INF/exhibit-builder/publish-mode-composition.vt
r9022 r9284 20 20 </style> 21 21 </head> 22 <noscript>$content</noscript> 22 23 #parse($layout) 23 24 </html>
