Changeset 12880 in project for wiki/eggref


Ignore:
Timestamp:
12/26/08 15:12:29 (12 years ago)
Author:
sjamaan
Message:

Temporary hack to fix example sections in wiki eggdoc pages

Location:
wiki/eggref/4
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/9p

    r12166 r12880  
    5175179p protocol directly.
    518518
    519 <example>
     519<examples><example>
    520520<init>
    521521(require-library 9p-client unix-sockets)
     
    534534    (9p:client-disconnect con)))
    535535</expr>
    536 </example>
     536</example></examples>
    537537
    538538This prints something like
  • wiki/eggref/4/base64

    r12512 r12880  
    1818== Examples
    1919
    20 <example>
     20<examples><example>
    2121<init>
    2222(require-library base64)
     
    3636"thequickbrownfoxjumpsoverthelazydog"
    3737</result>
    38 </example>
     38</example></examples>
    3939
    4040== About this egg
  • wiki/eggref/4/datatype

    r12166 r12880  
    5555==== Example
    5656
    57 <example>
     57<examples><example>
    5858<expr>
    5959; A simple binary tree with numbers:
     
    7575</expr>
    7676<result>((33 . 44) . 55)</result>
    77 </example>
     77</example></examples>
    7878
    7979=== Changelog
  • wiki/eggref/4/defstruct

    r12581 r12880  
    3232native {{define-record}}):
    3333
    34 <example>
     34<examples><example>
    3535<init>
    3636(require-extension defstruct)
     
    4444  ...)
    4545</result>
    46 </example>
     46</example></examples>
    4747
    4848Additionally, a constructor procedure {{make-STRUCTNAME}} is defined,
     
    5050arguments:
    5151
    52 <example>
     52<examples><example>
    5353<expr>
    5454(define p1 (make-point x: 99 y: 42))
     
    5656</expr>
    5757<result>; a point with x = 99 and y = 42</result>
    58 </example>
     58</example></examples>
    5959
    6060On Chicken 4 and higher, there are also two procedures {{update-STRUCTNAME}}
     
    6262selected values in an existing record:
    6363
    64 <example>
     64<examples><example>
    6565<expr>
    6666(define p2 (update-point p1 x: 100))
     
    7777</expr>
    7878<result>#t</result>
    79 </example>
     79</example></examples>
    8080
    8181=== License
  • wiki/eggref/4/epeg

    r12512 r12880  
    131131from the epeg distribution tarball.
    132132
    133 <example>
     133<examples><example>
    134134<init>
    135135(use epeg)
  • wiki/eggref/4/intarweb

    r12873 r12880  
    175175lists of values as values:
    176176
    177 <example>
     177<examples><example>
    178178<expr>
    179179(headers `((host ("example.com" . 8080))
     
    182182          old-headers)
    183183</expr>
    184 </example>
     184</example></examples>
    185185
    186186This adds the named headers to the existing headers in
  • wiki/eggref/4/lazy-ffi

    r12397 r12880  
    145145=== Examples
    146146
    147 <example>
     147<examples><example>
    148148<expr>
    149149#~"libc.so.6"
     
    160160  (list r box) )   ==> (0.456 #f64(123.0))
    161161</expr>
    162 </example>
     162</example></examples>
    163163
    164164Here the "Hello, world" example from the GTK 2.0 tutorial:
    165165
    166 <example>
     166<examples><example>
    167167<expr>
    168168;; Compile like this:
     
    216216(#~gtk_main safe: #t)
    217217</expr>
    218 </example>
     218</example></examples>
    219219
    220220Calling a pointer directly:
    221221
    222 <example>
     222<examples><example>
    223223<expr>
    224224#~"libdl.so.2"
     
    236236(#~~ (address->pointer 1077736272) "42.1" return: double:)    ; ==> 42.1
    237237</expr>
    238 </example>
     238</example></examples>
    239239
    240240=== Changelog
  • wiki/eggref/4/regex-case

    r12166 r12880  
    4242=== Examples
    4343
    44 <example>
     44<examples><example>
    4545<init>(use regex-case)</init>
    4646<expr>
     
    5858<expr>(test "???")</expr>
    5959<result>nothing</result>
    60 </example>
     60</example></examples>
    6161
    62 <example>
     62<examples><example>
    6363<init>(use regex-case)</init>
    6464<expr>
     
    6767</expr>
    6868<result>"23"</result>
    69 </example>
     69</example></examples>
    7070
    71 <example>
     71<examples><example>
    7272<init>(use regex-case)</init>
    7373<expr>
     
    7676</expr>
    7777<result>("http" "www.foo.com" "/index.html" "index.html")</result>
    78 </example>
     78</example></examples>
    7979
    8080=== Changelog
  • wiki/eggref/4/spiffy

    r12875 r12880  
    263263requested hostname, showing different websites for different hosts:
    264264
    265 <example>
     265<examples><example>
    266266<expr>
    267267(vhost-map `(("foo\\.bar\\.com" .
     
    278278                     (continue))))))
    279279</expr>
    280 </example>
     280</example></examples>
    281281
    282282In this example, if a client accesses
     
    380380response. Example:
    381381
    382 <example>
     382<examples><example>
    383383<expr>
    384384(send-status 404 "Not found"
    385385 "Sorry, page not found! Please try <a href='/search.ws'>our search page</a>")
    386386</expr>
    387 </example>
     387</example></examples>
    388388
    389389<procedure>(send-static-file filename)</procedure>
  • wiki/eggref/4/sxml-transforms

    r12166 r12880  
    224224
    225225For example, to make a procedure that quotes special HTML characters, do:
    226 <example>
     226<examples><example>
    227227(make-char-quotator
    228228    '((#\< . "&lt;") (#\> . "&gt;") (#\& . "&amp;") (#\" . "&quot;")))
    229 </example>
     229</example></examples>
    230230
    231231==== Chicken-specific modifications
     
    255255
    256256Example:
    257 <example>
     257<examples><example>
    258258<expr>(& "ndash" "quot")</expr>
    259259<result>"&ndash;&quot;"</result>
    260 </example>
     260</example></examples>
    261261
    262262
Note: See TracChangeset for help on using the changeset viewer.