<!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ïc Hoguin <<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>> wrote:
><i> Hello!
</I>><i>
</I>><i> I have put my thoughts on routing at the following gist:
</I>><i>
</I>><i> <A HREF="https://gist.github.com/4064759">https://gist.github.com/4064759</A>
</I>><i>
</I>><i> Please comment or cry in terror if you're against it!
</I>><i>
</I>><i> Thanks.
</I>><i>
</I>><i> --
</I>><i> Loïc Hoguin
</I>><i> Erlang Cowboy
</I>><i> Nine Nines
</I>><i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>><i> _______________________________________________
</I>><i> Extend mailing list
</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>><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:
{"/cars/:name/:color", [{color, in, [blue, red, pink]}], Handler,
Opts} might be {"/cars/:name/:color", [{color, regex, "^(blue | red |
pink)$", [other_re_parameters]) , Handler, Opts} for example.
== Loï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>