Skip to content
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

Suggestion: add namespace-prefix in libraryofbabel.org #4

Closed
yubrshen opened this issue Aug 31, 2015 · 2 comments
Closed

Suggestion: add namespace-prefix in libraryofbabel.org #4

yubrshen opened this issue Aug 31, 2015 · 2 comments

Comments

@yubrshen
Copy link

I found that adding the following noweb-ref would be handy

** Namespace prefix

+BEGIN_SRC clojure :noweb-ref namespace-prefix

org.yubrshen.web-audio-study

+END_SRC

where org.yubrshen.web-audio-study is the namespace prefix for my project. Your template is capable to generate.

For example,
I can express
Play
instead of hard-code my namespace prefix again.

It would be nice to have it defined in libraryofbabel.org to be accessible to all org files.

@postspectacular
Copy link
Member

Good idea! Will add for next release...

@yubrshen
Copy link
Author

Actually, just realized that it's more complicated for Clojurescript, as it
has to map '-' to '_',
so the namespace prefix needs to be a function of the Clojure dialect.
Or, we can provide two variants of namespace prefix.

On Mon, Aug 31, 2015 at 8:06 PM Karsten Schmidt notifications@github.com
wrote:

Closed #4 #4 via 14e892a
14e892a
.


Reply to this email directly or view it on GitHub
#4 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants