Questions tagged [cl-who]

Common Lisp With HTML Output (CL-WHO) is a Lisp mark-up language

Common Lisp With HTML Output (CL-WHO) is a Lisp mark-up language developed by Edi Weitz.

Further Reading:

17 questions
4
votes
1 answer

Hunchentoot Handling Checkbox Post Requests

I am developing a web application in Cl-who, Hunchentoot, and Common Lisp that will need to process customer orders. Since they could obviously order more than one item, I figured a Checkbox would make the most sense. However, the issue is when I…
Simeon Ikudabo
  • 2,152
  • 1
  • 10
  • 27
3
votes
1 answer

How to produce double quotes instead of single quotes for XML attributes in CL-WHO

By default, CL-WHO uses single quotes for quoting XML attributes values (e.g.

Hello!

). I am trying to set cl-who:*attribute-quote-char* to #\" so that attribute values use double quotes instead (e.g.

Hello!

).…
Flux
  • 9,805
  • 5
  • 46
  • 92
3
votes
1 answer

CGI example with CLISP and CL-WHO?

Could someone provide me a simple expample of a clisp script, that uses CGI /usr/local/bin/clisp CL-WHO or equivalent? My installation is consisting of apache2, clisp and quicklisp. Thanks in advance!
Patrick
  • 508
  • 2
  • 9
3
votes
2 answers

cl-who: using a variable in with-html-output-to-string

All the examples I've seen so far for cl-who work like this: (with-html-output-to-string (s) (:HTML (:HEAD (:TITLE "hello")) (:BODY (:DIV "world")))) Which works fine. However, I wanted to use with-html-output-to-string with a variable, instead…
fableal
  • 1,577
  • 10
  • 24
2
votes
1 answer

CL-WHO is always starting with a single quote

My issue is that CL-WHO begins each expression with a single quotation market when it turns the Lisp S-expressions into html output. This is okay most of the time, but it is an issue since I am linking my file to an external javascript file. I am…
Simeon Ikudabo
  • 2,152
  • 1
  • 10
  • 27
2
votes
1 answer

cl-who, parenscript, and quotation mark issues generating inline javascript

So I'm running a parenscript tutorial using the following code: (defparameter *js-string-delimiter* #\") (hunchentoot:define-easy-handler (tutorial1 :uri "/tutorial1") () (cl-who:with-html-output-to-string (s) (:html …
JEPrice
  • 627
  • 7
  • 10
2
votes
1 answer

Generating inline javascript with cl-who, parenscript and hunchentoot

I'm trying to generate inline javascript, but I have to put the parenscript code inside (:script) and (str) tags using cl-who. ps, ps*, ps-inline and ps-inline* don't seem to make much difference to the generated js. Is the usual way to write a…
Andomonir
  • 193
  • 1
  • 9
2
votes
1 answer

CL-WHO not displaying any HTML after conditional

Sorry for the probably stupid question, but I'm new to Common Lisp (I migrated from Racket) and so far I'm having an absolute blast building a web app with Hunchentoot, cl-who, and a few other miscellaneous packages, but I've recently run into an…
Alexis Dumas
  • 1,299
  • 11
  • 30
2
votes
2 answers

Undefined function after macroexpansion

I'm studying Common Lisp and want to play with lisp and web development. My current problem comes from a simple idea to iterate over all javascript files i want to include. I use SBCL and Quicklisp for fast startup. The problem could be related to…
cb0
  • 8,415
  • 9
  • 52
  • 80
2
votes
1 answer

cl-who and format

I'm trying to generate the following html code using cl-who:
And here's the code that I thought would work: (with-html-output-to-string…
mgs
  • 2,621
  • 2
  • 19
  • 14
1
vote
1 answer

HTML from DB not injecting into hunchentoot route

I have many routes in my app that get information from a database. In one particular situation, I am getting HTML content from a database to render it with cl-who. I am not sure why the content from the DB will not render. The rest of the page works…
Vinn
  • 1,030
  • 5
  • 13
1
vote
1 answer

How to produce HTML from a list

The usual way to generate HTML using CL-WHO is by using the macros with-html-output and with-html-output-to-string. This uses special syntax. For example: (let ((id "greeting") (message "Hello!")) (cl-who:with-html-output-to-string…
Flux
  • 9,805
  • 5
  • 46
  • 92
1
vote
2 answers

cl-who passing stream in funcalls

I'm using cl-who (via hunchentoot), so far completely successfully, but there's one thing that I can't figure out, and my workaround is ugly, so I'm hoping that there's an easy fix. My hunchentoot easy handlers call functions that look something…
jackisquizzical
  • 307
  • 1
  • 8
1
vote
4 answers

Mixed case tag names in cl-who

I'm using cl-who to generate svg, and it is working fine up until I need a mixed case tag: (with-html-output (*standard-output*) (:defs (:|radialGradient| :id "grad1" :cy "20" :fx "10%" :fy "50%" :r "8" (:stop :offset "0%" :stop-color…
BnMcGn
  • 1,440
  • 8
  • 22
0
votes
1 answer

CL-WHO HTML generator to file

I'm trying to generate an html file to a file. I'm using with-html-output-to-string, but I can't seem to figure out how to get the functionality to work. I'm not sure if I should use a file stream, with-open-file, and how to get the syntax to work.…
1
2