Menu(Loc("home", List("index"), "Home")) ::Menu(Loc("Interactive", List("interactive"), "Interactive Stuff"),Menu(Loc("chat", List("chat"), "Comet Chat", Unless(() => Props.inGAE, "Disabled for GAE"))),Menu(Loc("longtime", List("longtime"), "Updater", Unless(() => Props.inGAE, "Disabled for GAE"))),Menu(Loc("ajax", List("ajax"), "AJAX Samples")),Menu(Loc("ajax form", List("ajax-form"), "AJAX Form")),Menu(Loc("js confirm", List("rhodeisland"), "Modal Dialog")),Menu(Loc("json", List("json"), "JSON Messaging")),Menu(Loc("stateless_json", List("stateless_json"), "Stateless JSON Messaging")),Menu(Loc("json_more", List("json_more"), "More JSON")),Menu(Loc("form_ajax", List("form_ajax"), "Ajax and Forms"))
Menu("Home") / "index",Menu("Interactive Stuff") / "interactive" submenus(Menu("Comet Chat") / "chat" >> noGAE,Menu("Ajax Samples") / "interactive" / "ajax",Menu("Ajax Form") / "interactive" / "ajax-form",Menu("Modal Dialog") / "interactive" / "rhodeisland",Menu("JSON Messaging") / "interactive" / "json",Menu("Stateless JSON Messaging") / "stateless_json",Menu("More JSON") / "json_more",Menu("Ajax and Forms") / "form_ajax") ,
How much is the menu generation functionality (<lift:menu>) in Lift
actually used out in the world? It might be worth letting sites that
don't want/need it to be able to avoid using it completely (by which I
mean, not having to give every page on the site a human readable menu
label).
-harryh
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
I'm wondering about internationalization. How would that be solved
with this DSL if one has a site in more than one language?
That was one of things I didn't like about Lift, especially if you are
new it looks ubercomplex. New syntax at least looks nice and name
generation is good too (AFAIR it was made optional recently).
Its wonderful to see improvements in real time :)
How do you provide multiple params ?
> Yeah... the new stuff no longer requires the human readable label.I'm referring to the "Home" bit from the code you posted:
> Menu("Home") / "index",
At least some sites don't care about that.
-harryh
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
I like this a lot more than what we have currently for sure! Defo a
step in the right direction :-)
Using the Menu case class feels clunky
- why dont we distil that down
to a symbol (seeing as the rest of the dsl uses symbology):
<< "home" / "some" / "path" >> noGae
Valid concerns for sure David.
Perhaps, if you want to keep the Menu syntax with the apply method, then perhaps consider providing an alias method to apply that uses some symbol? On the same turn of the coin that Menu("XX") is more explanatory for n00bs, its also more verbose for experienced jedis ;-)
Cheers, Tim
--
On 24 Apr 2010, at 14:17, David Pollak wrote:
> This is not possible within Scala's syntax. Also, Menu mean something to people, especially newbies. We don't want Lift turning into ScalaZ syntax-wise. Yeah, it's great for people who know it, but the collection of symbols that only have a meaning once you've spent 6 months working with the system makes the learning curve very difficult. (Note I think there are a ton of good concepts in ScalaZ, but the mental cost of getting to those concepts is non-trivial.)
>
> Using the "/" as a path separator makes sense because that's what it is. Using >> is debatable but once your mind has the context that you're creating a menu, then you can look at what comes after the >> and say, "oh, those are the rules for this menu". I've added the rule method so you can chain params:
>
> Menu("Home") / "index" rule Hidden submenus(...)
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
/Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.