A type alias for LocParam instances that are applicable to any Loc
A function that calculates the statelessness of the Loc for the given request with the parameterized type passed into the function
A function that calculates the statelessness of the Loc for the given request
Calculate the value for the Loc.
A subclass of LocSnippets with a built in dispatch method (no need to implement isDefinedAt or apply.
Allows you to generate an early response for the location rather than going through the whole Lift XHTML rendering pipeline
Indicates that the path denominated by Loc requires HTTP authentication and only a user assigned to this role or to a role that is child-of this role can access it.
If the test returns True, the page can be accessed, otherwise, the result of FailMsg will be sent as a response to the browser.
This defines the Link to the Loc.
A function that can be used to calculate the link text from the current value encapsulated by the Loc.
If the Loc is in a group (or groups) like "legal" "community" etc.
An extension point for adding arbitrary lazy values to a Loc.
Algebraic data type for parameters that modify handling of a Loc in a SiteMap
Calculate additional query parameters to add as a query string to the Loc
Allows you to create a handler for many snippets that are associated with
a Loc, but agnostic to the Loc
's value.
MenuCssClass is used to add css to the Menu node.
Calculate additional query parameters to add as a query string to the Loc
A single snippet that's associated with a Loc
, but is
not directly aware of the Loc
value.
Allows a user to specify a template based upon a function from the current value encapsulated in the Loc
Allows a user to specify a template based upon a function from the current value encapsulated in the Loc.
Tests to see if the request actually matches the requirements for access to the page.
Allows extra access testing for a given menu location such that you can generically return a response during access control testing
This LocParam may be used to specify a function that calculates a title for the page based upon the current value encapsulated by this Loc.
Unless the test returns True, the page can be accessed, otherwise, the result of FailMsg will be sent as a response to the browser.
If this is a submenu, use the parent Loc's params
Extension point for user-defined LocParam instances.
The value of Loc
The common interface for LocParam
s that provide snippet functions,
which can be aware of the Loc
value.
If this parameter is included, the item will not be visible in the menu, but will still be accessable.
If the Loc has no children, hide the Loc itself
The companion object to LinkText that contains some helpful implicit conversion
If this parameter is included, the Loc will continue to execute even if currentValue is not defined.
The Loc does not represent a menu itself, but is the parent menu for children (implies HideIfNoKids)
Is the Loc a stateless Loc.
Create a Loc (Location) instance
Create a Loc (Location) instance
-- the name of the location. This must be unique across your entire sitemap. It's used to look up a menu item in order to create a link to the menu on a page.
-- the Link to the page
-- the text to display when the link is displayed
-- access test, title calculation, etc.
The Loc companion object, complete with a nice constructor