
22 Sep
2010
22 Sep
'10
1:17 p.m.
Have you looked at the web-routes package? Again, this might only be useful for more complex applications. The idea is that you use datatypes to encode all possible URLs, and linking is then done by building a value of that datatype: it is not possibly anymore to build invalid URLs.
This looks basically perfect as a replacement for my Routes and Links modules if a little involved. I'll look into it when I get home. Looks like I should be able to drop my custom modules entirely. I'll let you know how I get on with it.
There are also these two gists, which you may find interesting: http://gist.github.com/348425 http://gist.github.com/333769 These are the two different approaches I've played around with. -chris