A php template system based on Jekyll
This project was inspired by the RubyGem Jekyll. It works similarly to Jekyll in that it uses front-matter and has a similar file structure.
To setup a Hyde project, place the Hyde source in your root project folder.
To add pages to your project, open index.php and add the following:
$app->addPage('/path', 'name');
Where /path is the URL request path (after domain) and the name of the page file (exluding extension).
Then in the _pages folder create a php file for the page. At the top of the page include the following:
<?php
$layout = 'default';
$title = 'home'
?>
Layout is the layout file to apply to this page and title is the page title (will show on the browser tab).
To add a layout simply create a php file in the _layouts folder with the HTML structure for the layout.
To use includes create a php file in the _includes folder and include it in your layouts/pages using
getInclude($name);
This is just the start of this project. I plan to add the following features:
- A way to create blog posts
- A GUI for managing content