eg:
Code: Select all
<% (for (x 0 5 1) %>
<b><%= x %></b><br>
<% ) %>
now, its a little bit slower this way i imagine, since it converts that to several (print) statements and then evals it.
I havent tested it fully, but it works on my small test samples..
anyhow, im updating the downloads with the new code so you can try it for yourself =)
ftp://anonymous@grable.cjb.net/grb_httpd.rar
http://grable.cjb.net/grb_httpd.rar <-- may not be up 24/7
UPDATE:
allso the wiki needed a minor adjustment.. you can grab it here
or fix it yourself, its just to add 1 line of code
just go to the bottom of the file "index.cgi" and change the code to this
Code: Select all
;; take parameter as page name and display it
(set 'link QUERY_STRING)
(if (or (= link "") (not link))
(display-page "Home")
(display-page link)
)
(throw) # <--- this line