Changeset 37852 in project


Ignore:
Timestamp:
08/16/19 15:07:53 (5 weeks ago)
Author:
Mario Domenech Goulart
Message:

eggref/4/awful: handle both C4 and C5 and fix JSON example

Thanks to Southy and sjamaan on IRC for pointing out the invalid JSON
code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/awful

    r36427 r37852  
    11881188
    11891189<enscript highlight=scheme>
    1190 (use awful)
     1190(cond-expand
     1191  (chicken-4
     1192    (use awful))
     1193  (chicken-5
     1194    (import awful)))
    11911195
    11921196(enable-sxml #t)
     
    11951199  (define-page path
    11961200    (lambda ()
    1197       (awful-response-headers '((content-type "text/json")))
     1201      (awful-response-headers '((content-type "application/json")))
    11981202      (body))
    11991203    no-template: #t))
     
    12021206(define-json (main-page-path)
    12031207  (lambda ()
    1204     '("{a: 1}")))
     1208    '(literal "{\"a\": 1}")))
    12051209</enscript>
    12061210
     
    30493053
    30503054<enscript highlight=scheme>
    3051 (use awful awful-sql-de-lite)
     3055(cond-expand
     3056  (chicken-4
     3057    (use awful awful-sql-de-lite))
     3058  (chicken-5
     3059    (import awful awful-sql-de-lite)))
    30523060
    30533061(enable-sxml #t)
Note: See TracChangeset for help on using the changeset viewer.