October 13, 2004
XML Hack

so manly

Here's an interesting hack, embedding XML inline with Lisp code:

(defun process (command)
  (incf *num-requests*)
  (with-ml-page (:precompute f)
    (with-xml-output (*modlisp-socket*)
      <html>
        <head>
	  <title>"Some Title"</title>
	</head>
	<body>
	  <table>
	    <tr>
	      <td>"Number of requests"</td>
	      <td>*num-requests*</td>
	    </tr>
	    !(dolist (c command)
	      <tr>
	        <td>(car c)</td>
	        <td>(cdr c)</td>
	      </tr>)
	  </table>
	</body>
      </html>)))

Posted by jjwiseman at October 13, 2004 06:11 PM
Comments

Am I missing something, or is that lion tamer supposed to look like Alan Kay?

Posted by: Aaron Brady on October 14, 2004 01:22 AM

I suppose lion "murderer" might be more fitting, infact.

Posted by: Aaron Brady on October 14, 2004 01:23 AM

that is definitely Mr. Kay, or at least that was my initial impression aswell.

Posted by: Engelke on October 14, 2004 03:45 AM

I feel just like the guy in that picture every time I have to deal with XML.

Posted by: Cliff Crawford on October 14, 2004 04:56 AM

"I feel just like the guy in that picture every time I have to deal with XML."

a bad-ass alan kay impersonator?

Posted by: bryan on October 15, 2004 03:58 AM

I dont think "Bollywood" is accurate ... That guy looks more middle eastern ... and that script also looks like arabic or something. The only script in India which looks like that is maybe "Urdu", but then, there will be no all Urdu posters.

Posted by: quasi on October 16, 2004 09:59 AM

Maybe it's Pakistani.

Posted by: John Wiseman on October 16, 2004 10:21 AM
Post a comment
Name:


Email Address:


URL:




Unless you answer this question, your comment will be classified as spam and will not be posted.
(I'll give you a hint: the answer is “lisp”.)

Comments:


Remember info?