504278d9ba
so that page_route() is accessible via Layout
20 lines
232 B
Ruby
20 lines
232 B
Ruby
module Precious
|
|
module HasPage
|
|
def path
|
|
@page.url_path
|
|
end
|
|
|
|
def escaped_url_path
|
|
@page.escaped_url_path
|
|
end
|
|
|
|
def format
|
|
@page.format.to_s
|
|
end
|
|
|
|
def id
|
|
@page.sha
|
|
end
|
|
end
|
|
end
|