-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running compiled file #132
Comments
Hi @StreetStrider, Right, your assessment is correct that neither node nor browser know anything about any (ns foo.bar
(:require [wisp.sequence :refer [list]])) However, adding only that form to the top of the file won't help much either. You also need to include the symbol symbol, since you are syntax quoting the form. The (ns foo.bar
(:require [wisp.sequence :refer [list]]
[wisp.ast :refer [symbol]]))
(print (eval (quote (+ 1 2 3))) Stick that in a file, say P.S. This requires/assumes a P.P.S. Inspect the source a la |
@robjens, hi. Thanks for head's up. I like the explicit style. Well, I definitely should investigate wisp's namespace. |
@StreetStrider @robjens do you guys have a suggested change to the current docs that would clear this up for users? |
Hello, @chr15m. I do not. You can send a PR, but this project is out of maintainers' scope for now. I saw a deprecation warning. As of issue, I think there must be a simple way (like a single option) to bundle generated code with all required runtime (maybe bloated, redundant, but working for absolutely sure). |
Hi. I have some beginner question, but readme does not cover it. The docs say:
Does this mean that
wisp
does not require its own runtime? Here's the example:which results in:
This is a valid piece of JS code, but neither node neither browser knows anything about
list
andsymbol
, andeval
too, since it's just a name collision. So, I expect there's some wisp core which contains definitions for this functions and I should bundle my code with it to run it in node or browser.Readme has good explanation of syntax and even which JS code it will be compiled to. But it has no simple answer on how to run code and bundle. I think it should cover this issues in first place.
The text was updated successfully, but these errors were encountered: