Changeset 9585 for lang/gauche/oldtype
- Timestamp:
- 04/16/08 21:14:51 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/oldtype.kahua
r8676 r9585 49 49 (else 50 50 #t)))) 51 52 51 53 52 ;; utility : internal sxml format to barcode link 54 53 (define (sxml->barcode sxmls page-src) … … 129 128 (string-append orig "\n"))) 130 129 page-src))) 130 "" 131 131 ))))) 132 132 (node-set … … 245 245 246 246 247 (define (standard-page wikiname barcode nodes )248 (html/ (head/ (title/ wikiname)247 (define (standard-page wikiname barcode nodes first-line) 248 (html/ (head/ (title/ (string-append wikiname first-line)) 249 249 (link/ (@/ (rel "stylesheet") (type "text/css") 250 250 (href (string-append "/kahua/" (kahua-worker-type) "/oldtype.css")))) … … 285 285 286 286 287 (define (oldtype-first-line page-src) 288 (car 289 (filter 290 (lambda (x) 291 (not (#/^[ ]*$/ x))) 292 page-src))) 293 294 287 295 (define (show-page/page wikiname) 288 296 (let1 sexp (oldtype:load-sexp (kahua-site-root) wikiname) 289 (standard-page 290 wikiname 291 (if sexp 292 (sxml->barcode 293 (car (assq-ref sexp 'sxml)) 294 (car (assq-ref sexp 'src))) 295 (br/)) 296 (if sexp 297 (sxml->higher-order-tag 298 wikiname 299 (car (assq-ref sexp 'sxml)) 300 (car (assq-ref sexp 'src))) 301 (div/ 302 (p/ 303 (@/ (class "center")) 304 (strong/ 305 (@/ (class "caption")) 306 "This wikipage was not found."))))))) 307 297 (let ((sxml (car (assq-ref sexp 'sxml))) 298 (src (car (assq-ref sexp 'src)))) 299 (standard-page 300 wikiname 301 (if sexp 302 (sxml->barcode sxml src) 303 (br/)) 304 (if sexp 305 (sxml->higher-order-tag wikiname sxml src) 306 (div/ 307 (p/ 308 (@/ (class "center")) 309 (strong/ 310 (@/ (class "caption")) 311 "This wikipage was not found.")))) 312 (oldtype-first-line src))))) 308 313 309 314
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)