<div dir="ltr">Take a look at the examples.<div><br></div><div>wes</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 3, 2019 at 4:21 AM Eckard Brauer <<a href="mailto:eckard.brauer@gmx.de">eckard.brauer@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
OK, tried the "Getting started" at<br>
(<a href="https://ninenines.eu/docs/en/cowboy/2.6/guide/getting_started/" rel="noreferrer" target="_blank">https://ninenines.eu/docs/en/cowboy/2.6/guide/getting_started/</a>).<br>
<br>
When following that page, I don't get a 500 response as promised, but a<br>
<br>
compile: warnings being treated as errors<br>
src/hello_erlang_handler.erl:9: function start/2 is unused<br>
<br>
when building. So defining routes in paragraph "Listening for<br>
connections" should probably be corrected - what's the correct way /<br>
where is the correct position to define routes?<br>
<br>
Thanks in advance!<br>
Eckard<br>
<br>
Am Tue, 2 Apr 2019 09:57:36 +0300<br>
schrieb Dmitry Klionsky <<a href="mailto:dm.klionsky@gmail.com" target="_blank">dm.klionsky@gmail.com</a>>:<br>
<br>
> +1 for cowboy.<br>
><br>
> You serve static files using<br>
> <a href="https://ninenines.eu/docs/en/cowboy/2.6/guide/static_files/" rel="noreferrer" target="_blank">https://ninenines.eu/docs/en/cowboy/2.6/guide/static_files/</a><br>
> For templating you can use <a href="https://github.com/erlydtl/erlydtl" rel="noreferrer" target="_blank">https://github.com/erlydtl/erlydtl</a><br>
><br>
><br>
> On 4/1/19 10:59 PM, Wes James wrote:<br>
> > How about cowboy:<br>
> ><br>
> > <a href="https://github.com/ninenines/cowboy" rel="noreferrer" target="_blank">https://github.com/ninenines/cowboy</a><br>
> ><br>
> > <snip><br>
> ><br>
> ><br>
> > -wes<br>
> ><br>
> > _______________________________________________<br>
> > erlang-questions mailing list<br>
> > <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br>
<br>
--<br>
:)<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>