[][src]Module deadwiki::render

Rendering "logic".

Functions

index

Render the index page which lists all wiki pages.

layout

Renders a chunk of HTML surrounded by static/layout.html.

new_page_path

Returns a path on disk to a new wiki page. Nothing if the page already exists.

page

Render a wiki page to a fully loaded HTML string, with layout.

page_path

Path of wiki page on disk, if it exists. Ex: page_path("Welcome") -> "wiki/welcome.md"

pathify

Convert a wiki page name or file path to cleaned up path. Ex: "Test Results" -> "test_results"

search