[erlang-questions] misultin question

OvermindDL1 overminddl1@REDACTED
Tue Nov 8 21:35:10 CET 2011


On phone, please excuse the top post.

You can make a parse transform to do that.  Not a bad idea actually.
On Nov 7, 2011 10:05 AM, "Wes James" <comptekki@REDACTED> wrote:

> Anyone know with misultin, what is the "/" or root web folder if it
> does exist in a simple misultin web app. I.e., you can define a web
> page by doing this:
>
> handle_http(Req, Port) ->
>    % output
>    Req:ok([{"Content-Type", "text/html"}],
>
> ["<html>
> <head>
> </head>
> <body>
> </body>
> </html>
> "
> ]).
>
> But If I want to put some javascript in or css styles it seems I must
> put the whole css or javascript as a chunk in the [""] part.  Is there
> a way to put the css or javascript content in a file and pull in with:
>
> <script src="/jquery-1.6.4.js"></script>
> or
> <link rel="stylesheet" type="text/css" href="/file.css" />
>
> ??
>
> That is why I'm asking if there is a "/" or root web location defined
> to a basic misultin app.
>
> Thanks,
>
> -wes
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111108/a042ef63/attachment.htm>


More information about the erlang-questions mailing list