Overview
Comment: | All moved into stml1 module and it compiles/installs. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | stml2 |
Files: | files | file ages | folders |
SHA1: |
77e773359061b7516ffd3a6ada139f29 |
User & Date: | matt on 2018-09-08 20:07:48 |
Other Links: | branch diff | manifest | tags |
Context
2018-09-08
| ||
23:04 | Added ability to specify config file check-in: e954e3db42 user: matt tags: stml2 | |
20:07 | All moved into stml1 module and it compiles/installs. check-in: 77e7733590 user: matt tags: stml2 | |
19:46 | Moved everything into a single module for a more easy transition check-in: de72dc8d9f user: matt tags: stml2 | |
Changes
Modified stml2.scm from [abcaf8a488] to [4d2e64aa27].
︙ | ︙ | |||
205 206 207 208 209 210 211 | ;; call only with (label (label value dispval [#t]) ...) ;; NB// sadly this block is redundantly almost identical to the s:select ;; fix that later ... (define (s:optgroup dat) (let ((label (car dat)) (rem (cdr dat))) (if (null? rem) | | | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | ;; call only with (label (label value dispval [#t]) ...) ;; NB// sadly this block is redundantly almost identical to the s:select ;; fix that later ... (define (s:optgroup dat) (let ((label (car dat)) (rem (cdr dat))) (if (null? rem) (s:common-tag "OPTGROUP" `('label ,label)) (let loop ((hed (car rem)) (tal (cdr rem)) (res (list (conc "<OPTGROUP label=" label)))) ;; (print "hed: " hed " tal: " tal " res: " res) (let ((new (append res (list (if (list? (cadr hed)) (s:optgroup hed) (s:option hed)))))) |
︙ | ︙ | |||
934 935 936 937 938 939 940 | ;; return (dat remdat) (define (formdat:read-dat dat key) (let ((index (substring-index key dat))) ;; (string-search-positions key dat))) (if (or (not index) (null? index)) ;; the key was not found #f (let* ((datstr (open-input-string dat)) | | > | 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 | ;; return (dat remdat) (define (formdat:read-dat dat key) (let ((index (substring-index key dat))) ;; (string-search-positions key dat))) (if (or (not index) (null? index)) ;; the key was not found #f (let* ((datstr (open-input-string dat)) ;; (result (read-string (caar index) datstr)) (result (read-string index datstr)) (remdat (read-string #f datstr))) (close-input-port datstr) (list result remdat))))) ;; inp is port to read data from, maxsize is max data allowed to read (total) (define (formdat:dat->list inp maxsize #!key (debug-port #f)) ;; read 1Meg chunks from the input port. If a block is not complete |
︙ | ︙ | |||
2435 2436 2437 2438 2439 2440 2441 | (define (s:set! key val) (session:curr-page-set! s:session key val)) (define (s:del! key) (session:page-var-del! s:session key)) | | | | 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 | (define (s:set! key val) (session:curr-page-set! s:session key val)) (define (s:del! key) (session:page-var-del! s:session key)) #;(define (s:get-n-del! key) (let ((val (session:page-get s:session key))) (session:del! s:session val key) val)) ;; these are session wide (define (s:session-var-get key . params) (session:get s:session "*sessionvars*" key params)) (define (s:session-var-set! key val) |
︙ | ︙ |