Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  grabbing appmod name

Guest
Posted: Tue Jun 01, 2010 8:15 pm Reply with quote
Guest
How do I grab the appmod fake-name in

appmod = <fake-name, realname>

in size an appmod.

In a .hrl or somewhere else if possible, I would like to dynamically grag this:

-define(SERVERPATH, fakename).

I have this path in some java script and I would like to dynamically
change this based on what it is called in the appmod declaration.

Is there a way to do this. I can grab it with A#arg.server_path, but
then I would need to pass it around a lot of functions.

Hmm, I'm not sure -define(SERVERPATH,...) will work. Since that path
isn't known until A is passed in the out(A) ->...., right?

Any other ideas on this?

thx,

-wes

------------------------------------------------------------------------------

_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum