[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to render raw data using sxml?
From: |
Jakub Jankiewicz |
Subject: |
How to render raw data using sxml? |
Date: |
Sun, 10 Jul 2016 21:58:49 +0200 |
Hi,
I want to render scheme code inside script tag to be executed by biwascheme
in the browser so I've try to create simple page using sxml (cgi script):
(display "Content-Type: text/html")
(newline)
(newline)
(display "<!DOCTYPE html>")
(newline)
(sxml->xml `(html
(head
(title "BiwaScheme test")
(script (@ (src "biwascheme-min.js")) "(display \"hello\")"))
(body (p "BiwaScheme test"))))
but the output was:
<!DOCTYPE html>
<html><head><title>BiwaScheme test</title><script
src="biwascheme-min.js">(display
"hello")</script></head><body><p>BiwaScheme test</p></body></html>
which is invalid scheme code. I've also try this:
(script (@ (src "biwascheme-min.js")) "(display " #\" "hello" #\" ")")
but got the same result. How can I display raw data using sxml->xml
thanks in advance
Jakub
--
Jakub Jankiewicz, Web Developer
http://jcubic.pl
- How to render raw data using sxml?,
Jakub Jankiewicz <=
- Re: How to render raw data using sxml?, tomas, 2016/07/11
- Re: How to render raw data using sxml?, Amirouche Boubekki, 2016/07/11
- Re: How to render raw data using sxml?, Jakub Jankiewicz, 2016/07/12
- Re: How to render raw data using sxml?, Jakub Jankiewicz, 2016/07/12
- Re: How to render raw data using sxml?, tomas, 2016/07/13
- Re: How to render raw data using sxml?, Andy Wingo, 2016/07/14
- Re: How to render raw data using sxml?, tomas, 2016/07/14
- Re: How to render raw data using sxml?, Matt Wette, 2016/07/14
- Re: How to render raw data using sxml?, tomas, 2016/07/14
- Re: How to render raw data using sxml?, Amirouche Boubekki, 2016/07/15