summaryrefslogblamecommitdiffstats
path: root/archives/extend/2012-November/000014.html
blob: 6db60e4a4659ed01ecdd8db82d2de7210d112010 (plain) (tree)





































































































                                                                                                                                                                                                                                
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] Proposal for Cowboy Routing
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Proposal%20for%20Cowboy%20Routing&In-Reply-To=%3CCAL%2BY1nunQttGU4%3DnTQkUZ6tfx7xAi%2BX4aDJeWAAHnFKsC3C81w%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000016.html">
   <LINK REL="Next"  HREF="000015.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] Proposal for Cowboy Routing</H1>
    <B>Dave Cottlehuber</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Proposal%20for%20Cowboy%20Routing&In-Reply-To=%3CCAL%2BY1nunQttGU4%3DnTQkUZ6tfx7xAi%2BX4aDJeWAAHnFKsC3C81w%40mail.gmail.com%3E"
       TITLE="[99s-extend] Proposal for Cowboy Routing">dch at jsonified.com
       </A><BR>
    <I>Tue Nov 13 16:42:53 CET 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="000016.html">[99s-extend] Proposal for Cowboy Routing
</A></li>
        <LI>Next message: <A HREF="000015.html">[99s-extend] Proposal for Cowboy Routing
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#14">[ date ]</a>
              <a href="thread.html#14">[ thread ]</a>
              <a href="subject.html#14">[ subject ]</a>
              <a href="author.html#14">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 13 November 2012 10:04, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt; wrote:
&gt;<i> Hello!
</I>&gt;<i>
</I>&gt;<i> I have put my thoughts on routing at the following gist:
</I>&gt;<i>
</I>&gt;<i>   <A HREF="https://gist.github.com/4064759">https://gist.github.com/4064759</A>
</I>&gt;<i>
</I>&gt;<i> Please comment or cry in terror if you're against it!
</I>&gt;<i>
</I>&gt;<i> Thanks.
</I>&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> Lo&#239;c Hoguin
</I>&gt;<i> Erlang Cowboy
</I>&gt;<i> Nine Nines
</I>&gt;<i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Extend mailing list
</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;<i> <A HREF="http://lists.ninenines.eu:81/listinfo/extend">http://lists.ninenines.eu:81/listinfo/extend</A>
</I>
I actually commented on the gist, here's a copy for the ML:

== dch ==

Looks very useful for me. I've not heard of imbrication until today, I
assume it is closest to nested optional components as used above.

Having regex capability in the constraints would be great:

{&quot;/cars/:name/:color&quot;, [{color, in, [blue, red, pink]}], Handler,
Opts} might be {&quot;/cars/:name/:color&quot;, [{color, regex, &quot;^(blue | red |
pink)$&quot;, [other_re_parameters]) , Handler, Opts} for example.

== Lo&#239;c ==

Yes, regex will be a possible constraint. Also checking for integer
value. Not sure what else we'll want.

A+
Dave

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000016.html">[99s-extend] Proposal for Cowboy Routing
</A></li>
	<LI>Next message: <A HREF="000015.html">[99s-extend] Proposal for Cowboy Routing
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#14">[ date ]</a>
              <a href="thread.html#14">[ thread ]</a>
              <a href="subject.html#14">[ subject ]</a>
              <a href="author.html#14">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>