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 ("wiki", Full(AllLoc)) => showAll _
is what binds the <lift:wiki /> tag in the html file, and then showAll
is invoked if its AllLoc - however, there seems to be a very tight
coupling between the presentation logic here and the HTML code? For
instance:
def showAll(in: NodeSeq): NodeSeq =
WikiEntry.findAll(OrderBy(WikiEntry.name,
Ascending)).flatMap(entry =>
<div><a href={url(entry.name)}>{entry.name}</a></div>)
For a simple example, thats fine, but my layout could be a lot more
complicated and require a lot more HTML code which I would rather not
pollute my scala files with if possible? This also makes it difficult
for the designer.
What are your thoughts?
Cheers
Tim
On Oct 24, 7:38 pm, "David Pollak" <[EMAIL PROTECTED]>
wrote:
> Seehttp://groups.google.com/group/liftweb/browse_thread/thread/6c1cd13c3...
>
>
>
> On Fri, Oct 24, 2008 at 11:16 AM, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
> > Quick question chaps,
>
> > If I want my URLs to look like:
>
> > /article/my-demo-blog-post
>
> > How would one go about that? Even with something messy like:
>
> > "name" -> SHtml.link("/article/" + article.permanent_link.toString, ()
> > => Nil, Text(article.name))
>
> > I get the query string appended to the url with a bunch of encoding
> > stuff... e.g.
>
> >http://127.0.0.1:8080/article/demo-post?F1224871776479962000_JWS=_
>
> > Whilst, if worse came to worse I could live with this, it would be
> > nice not to have it for such a simple operation?
>
> > Cheers
>
> > Tim
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Collaborative Task Managementhttp://much4.us
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---