<p>On phone, please excuse the top post.</p>
<p>You can make a parse transform to do that. Not a bad idea actually.</p>
<div class="gmail_quote">On Nov 7, 2011 10:05 AM, "Wes James" <<a href="mailto:comptekki@gmail.com">comptekki@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Anyone know with misultin, what is the "/" or root web folder if it<br>
does exist in a simple misultin web app. I.e., you can define a web<br>
page by doing this:<br>
<br>
handle_http(Req, Port) -><br>
% output<br>
Req:ok([{"Content-Type", "text/html"}],<br>
<br>
["<html><br>
<head><br>
</head><br>
<body><br>
</body><br>
</html><br>
"<br>
]).<br>
<br>
But If I want to put some javascript in or css styles it seems I must<br>
put the whole css or javascript as a chunk in the [""] part. Is there<br>
a way to put the css or javascript content in a file and pull in with:<br>
<br>
<script src="/jquery-1.6.4.js"></script><br>
or<br>
<link rel="stylesheet" type="text/css" href="/file.css" /><br>
<br>
??<br>
<br>
That is why I'm asking if there is a "/" or root web location defined<br>
to a basic misultin app.<br>
<br>
Thanks,<br>
<br>
-wes<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>