Skip to content
HydePHP Documentation

Data / Base Markdown Page Methods

make()#

Create a new page instance. Static alias for the constructor.

1BaseMarkdownPage::make(string $identifier, Hyde\Markdown\Models\FrontMatter|array $matter, Hyde\Markdown\Models\Markdown|string $markdown): static

__construct()#

Construct a new page instance.

1$page = new BaseMarkdownPage(string $identifier, Hyde\Markdown\Models\FrontMatter|array $matter, Hyde\Markdown\Models\Markdown|string $markdown): void

markdown()#

Return the document's Markdown object.

1$page->markdown(): Hyde\Markdown\Models\Markdown

compile()#

Compile the page into static HTML.

1$page->compile(): string // The compiled HTML for the page.

save()#

Save the Markdown page object to disk by compiling the front matter array to YAML and writing the body to the file.

1$page->save(): $this