Fair enough. So if I want pretty urls, I have to have an extra column in my database then. This is one compromise, but I was hoping for something a little more programmatic.
As a counter to G+, StackOverflow alters the name to lower-case and add a '-', so that M User becomes www...../m-user. On Monday, March 10, 2014 9:21:13 PM UTC-7, Jarrod Swart wrote: > > This has become super confusing to follow, possibly because you have the > wrong expectation of compojure? > > Compojure is not specificy how your routes will look, it is responding to > whatever URLs you put in place. > > In the case of: > > (GET "/:profile-page" [profile-page] ...) > > :profile-page in the route string, becomes profile-page the variable. > > So if you make the link: "http://myapp.com/some user" then profile-page > will be "some user". > > If you make the link: "http://myapp.com/SomeUser" then profile-page will > be "SomeUser". The route is simply capturing whatever is sent, not > specifying or creating anything. Once you have profile-page you can then > modify it as you see fit. > > When you create the links in your app's template you will specify what URL > is called, that is when you decide how to display the user's profile name > in the URL. > > I recommend not having a space, take a look at google+ where my username > is "Jarrod Swart" but my profile url is: plus.google.com/+JarrodSwart > > Hopefully this helps, or perhaps I misread the thread. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.