[Bese-devel] Error generating css with parenscript

Henrik Hjelte henrik at evahjelte.com
Mon Oct 23 16:00:37 UTC 2006


On Mon, 2006-10-23 at 18:01 +0530, Vamsee Kanakala wrote:
> Hi all,
> 
> I don't know if this is the right place to ask parenscript questions, 
> but I don't see a parenscript-specific list, so I'm posting it here. 
>  
> when I try this:
> 
> JS> (css (* :border "1px solid black")

The standalone css generating part of parenscript is tied to the bknr
html generation framework, so I guess that almost no one uses it (at
least on this list). Uncommon-web has its own framework (yaclml). Anyway
the illegal function call is because the css macro returns a list that
is not a proper lisp expression. 
(macroexpand '(css))
->
((:STYLE :TYPE "text/css") (:PRINC #\Newline "<!--" #\Newline) (:PRINC)
 (:PRINC "-->" #\Newline))

The first value is a list (:style :type "text/css")) rather than a
symbol naming a function, and that makes it an illegal function call. 

Perhaps the standalone css generation code should be dropped from
parenscript, since it neither works nor has anything to do with
javascript? 

/Henrik Hjelte




More information about the bese-devel mailing list