Hwaro::Content::Menus::Entry
Inherits Reference / Object
A single resolved menu item. url is a bare root-relative path (or
an untouched external URL) — comparable to page.url for the
active_path filter. Template exposure additionally computes href
(config.with_base_path(url)) so links work under a subpath deploy;
see build_global_vars.
Constructors
new(name : String, url : String, identifier : String, weight : Int32, parent : String | Nil, external : Bool, page_path : String | Nil, children : Array(Entry) = [] of Entry)
SourceInstance methods
children
Sourcechildren=(children : Array(Entry))
Sourceexternal
Sourceexternal=(external : Bool)
Sourceidentifier
Sourceidentifier=(identifier : String)
Sourcename
Sourcename=(name : String)
Sourcepage_path
Sourcepage_path=(page_path : String | Nil)
Sourceparent
Sourceparent=(parent : String | Nil)
Sourceurl
Sourceurl=(url : String)
Sourceweight
Sourceweight=(weight : Int32)
Source