From: Kamen TOMOV
Subject: Parenscript: run-time data in a js form
Date: 
Message-ID: <u3b1rft1a.fsf@cybuild.com>
Hi,

This question is about the parenscript package. There doesn't seem to
exist a parenscipt mail-list so I hoped someone here might know.
 
Is there a way to escape the javascript generation in a js form (js is
a macro definition from the parenscript package)? In other words the
question is how to use runtime data js form?

(let ((st "Something"))
  (js st))

The form above returns "st;" instead "Something;".

Thanks,

-- 
Kamen
http://www.cybuild.com/~kat
From: Pascal Bourguignon
Subject: Re: Parenscript: run-time data in a js form
Date: 
Message-ID: <87myzzjjmr.fsf@thalassa.lan.informatimago.com>
Kamen TOMOV <·····@evrocom.net> writes:

> Hi,
>
> This question is about the parenscript package. There doesn't seem to
> exist a parenscipt mail-list so I hoped someone here might know.
>  
> Is there a way to escape the javascript generation in a js form (js is
> a macro definition from the parenscript package)? In other words the
> question is how to use runtime data js form?
>
> (let ((st "Something"))
>   (js st))
>
> The form above returns "st;" instead "Something;".

(let ((st "Something"))
  (js:js* st))

(let ((st "Something")) (js:js* st)) --> "'Something';"
(let ((st '*something)) (js:js* st)) --> "Something;"

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.