2017 © Pedro Peláez
 

library fizl-pages

Simple file based web site builder.

image

anomaly/fizl-pages

Simple file based web site builder.

  • Sunday, December 14, 2014
  • by anomaly
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Fizl Pages

A simple markdown, file based, web site builder., (*1)

How it works

Fizl Pages makes it easy to map URIs to markdown files. For example, when a user visits /home, Fizl will render the content in the home.md file., (*2)

Folder Structure

All content goes inside the base folder called content. This can be changed in the configuration. All pages go inside a pages folder. Error pages such as the 404 go in an errors folder., (*3)

/content/
    pages/
        about.md
        blog/
            index.md 
            01-one.md // blog/one
            02-two.md
        home.md
    errors/
        404.md

Sub-pages

You can create sub pages by putting your files within nested folders., (*4)

Index Pages

Lets say a user visits /about. Fizl will first check if an about.md exists, if not it will try to find about/index.md., (*5)

Page Content

Simply write your the page content in markdown syntax., (*6)

Page Headers

$pages = new Anomaly\FizlPages\Pages;

home.md, (*7)

$page = $pages->find('home');




echo $page->title; // echoes Home

echo $page->date;

The Versions