Skip to content

Commit

Permalink
Merge pull request #379 from hydephp/366-pagecontract-needs-compile-m…
Browse files Browse the repository at this point in the history
…ethod

Fix #366 PageContract needs compile method hydephp/develop@4ebb243
  • Loading branch information
github-actions committed Aug 8, 2022
1 parent 34bd50b commit 1f660f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Contracts/PageContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ public function getCurrentPagePath(): string;
*/
public function getRoute(): RouteContract;

/**
* Compile the page into static HTML.
*
* @return string The compiled HTML for the page.
*/
public function compile(): string;

/**
* Get the page title to display in the <head> section's <title> tag.
*
Expand Down

0 comments on commit 1f660f5

Please sign in to comment.