- 
                Notifications
    
You must be signed in to change notification settings  - Fork 88
 
website substitute
        Matthias Görges edited this page Aug 12, 2020 
        ·
        1 revision
      
    Applies all content substitutions to serve a dynamic website document.
| Parameter | Description | 
|---|---|
| data | website content string on which substitutions will be performed | 
(website-addhook #f "/index.html"
  (lambda (args)
    (let ((data (cadr (assoc "DATA" args))))
      (website-substitute data))))
(website-addhook #f "/index.html" "<h1>[TEXT]</h1>[PROC]")
(website-addsubstitution "[TEXT]" "replaced text")
(website-addsubstitution "[PROC]" (let ((a 0)) (lambda () (set! a (+ a 1)) (number->string a))))
(website-serve #f 8080)
- 
- accelerometer
 - alist
 - audio
 - audioaux
 - base64
 - btle-scan
 - camera
 - cdb
 - cgi
 - config
 - csv
 - curl
 - digest
 - dmtx
 - download
 - eventloop
 - fcgi
 - fft
 - generalized-arrays
 - gps
 - graph
 - gyro
 - hidapi
 - hpdf
 - html
 - httpsclient
 - hybridapp
 - json
 - lmdb
 - ln_core
 - ln_glcore
 - ln_glgui
 - ln_store
 - localization
 - localization_gui
 - localnotification
 - magnetometer
 - mdns
 - mqtt
 - mqtt-store
 - multitouch
 - oauth
 - orientation
 - p256ecdsa
 - png
 - portaudio
 - pregexp
 - pressure
 - prime
 - pushnotification
 - redcap
 - rsa
 - rtaudio
 - rupi
 - rotation
 - sanestring
 - scheduler
 - serial
 - sets
 - settings
 - simplexnoise
 - sqlite
 - ssax
 - syntax-case
 - timestamp
 - ttf
 - uiform
 - url
 - uuid
 - vibrate
 - videoplayer
 - watchdog
 - website
 - xml
 - zip