class

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)
Source

Instance methods

children
Source
children=(children : Array(Entry))
Source
external
Source
external=(external : Bool)
Source
identifier
Source
identifier=(identifier : String)
Source
name
Source
name=(name : String)
Source
page_path
Source
page_path=(page_path : String | Nil)
Source
parent
Source
parent=(parent : String | Nil)
Source
url=(url : String)
Source
weight
Source
weight=(weight : Int32)
Source