Paper PHP is Static Site Generator written on top of ReactPHP.
composer create-project paphper/paper
php paper dev
This runs a development server at http://localhost:8888. You can change this port to your choice at /config.php.
This is where all the pages for the site lives
This is where all the layouts for the site lives
This is where the images, css and other assets live
Note: All of these can be changed here in the /config.php.
We include 'meta' for post in a <paper> tag. Meta here means whatever you want to be replaced in the content of the page.
{content}in the layout andlayoutin the<paper>tag are reserved and cannot be used to replace the contents in the page
The syntax in the template is {meta}.
For example if you want to add title to a page {title}, add a
title: This is the test title
in your paper tag. and in your layout. You would add
...
<title>{title}</title>
...This will generate
<title>This is the test title</title>in the HTML.
Example paper tag
<paper>
description: this is the best description
title: This is the test title
layout: blog.html
</paper>