Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.09 KB

File metadata and controls

40 lines (24 loc) · 1.09 KB

Flatland is a static website generator, created with the intention of being extremely lightweight. It uses XML for data storage, and PHP for backend.

Templates

It features a rudimentary templating system, with module and menu content being included using curly braces. These can be used within content to enable module embedding.

Data

Check the XML schemas in "App/Lib/Schemas" for an overview of the data models. This should give you an idea of how to add content to your site. Page content is authored using markdown syntax

Layout

Edit the files in "App/Data/Template" to structure your layout.

Usage

Add CSS, JS and image files to "web" folder and use PHP CLI to run "App/generator.php". Eg.

cd /path/to/flatland/App

php generator.php

HTML files will be generated in "web" folder, this must be used as your web root.

License

Feel free to use and distribute.

This is currently a work in progress, I will update as I add more features.

Credits

Parsedown