[Lift] Re: Friendly URL's?

2008-10-27 Thread Sasha Kazachonak
Unfortunately, I don't fully understand how the current Loc stuff is supposed to be used. I like many things in lift a lot, but I want first-class friendly URL's support. So I wrote it. It is used like this: val entries = Menu(Loc(index, List(index), Main)) :: ...

[Lift] Re: Friendly URL's?

2008-10-27 Thread Tim Perrett
Hey Sasha, Thanks for your input - if your willing to post the code that would be brilliant :) Cheers, Tim On Oct 26, 11:50 pm, Sasha Kazachonak [EMAIL PROTECTED] wrote: Unfortunately, I don't fully understand how the current Loc stuff is supposed to be used. I like many things in lift a

[Lift] Re: Friendly URL's?

2008-10-27 Thread Sasha Kazachonak
Here it is import net.liftweb.http._ import net.liftweb.util._ import net.liftweb.sitemap._ import net.liftweb.sitemap.Loc._ import scala.xml._ object ParamsLoc { def apply(name: String, uri: Uri, params: LocStuff*) = new ParamsLoc(name, uri, Hidden :: params.toList) class ParamsLink(uri:

[Lift] Re: Friendly URL's?

2008-10-25 Thread Tim Perrett
Thanks for reminding me of this Dave - one thing that i dont get about that however is this: does it make the Wiki.scala in the example project obsolete? It appears it does, but then it seems you'd have a strange / disjointed distribution of application logic? Taking an educated guess: case

[Lift] Re: Friendly URL's?

2008-10-25 Thread Tim Perrett
Right, i've been working on this for most of the day trying to understand exactly whats going on. I have a working sample, but its not how I would want it to work in an ideal world. http://github.com/timperrett/bloglite/tree/master/src/main/scala/eu/getintheloop/bloglite/maps/Articles.scala