Closed joedavis closed 13 years ago
I'm after adding a literal special form, to allow insertion of literal strings into the compiled javascript. I don't believe there is a way of doing this at the moment using scriptjure.
Example of usage:
(js (var regex (literal "/[^\w ]+/g")))
Will compile into this javascript code:
var regex = /[^\w ]+/g;
I think quote (or ') will do what you want.
Thanks, I had read through the source – I don't know how I missed it.
I'm after adding a literal special form, to allow insertion of literal strings into the compiled javascript. I don't believe there is a way of doing this at the moment using scriptjure.
Example of usage:
Will compile into this javascript code: