2017 © Pedro Peláez
 

library pressing

extensible library for static site generation

image

helloandre/pressing

extensible library for static site generation

  • Monday, April 18, 2016
  • by helloandre
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Pressing

A Static Site Generator library for PHP., (*1)

Install

composer install helloandre/pressing

Usage

$config = [];
$pressing = new Pressing\Pressing;
$pressing->generate($config);

Config

Pressing Config

output_dir - default: public/ - where the generated output will go., (*2)

input_dir - default: src/ - where Pressing should look for files to move to output_dir, (*3)

template_engine - default: Twig - what engine to use to render templates, (*4)

template_dir - default: templates/ - where templates are located, (*5)

Frontmatter

Each file may contain a frontmatter config that is JSON inside a top and bottom "marker" of three dashes as the very first thing in the file., (*6)

A file will be run through the template engine ONLY IF a frontmatter is found., (*7)

---
{ ... }
---
...

or empty, (*8)

---
---
...

Any data contained within the frontmatter will be passed to the template., (*9)

Special Frontmatter

template - default: none - declares which template to use., (*10)

Template Engines

currently available template engines:, (*11)

The Versions

18/04 2016

dev-master

9999999-dev

extensible library for static site generation

  Sources   Download

MIT

The Requires

 

static site generator

18/04 2016

0.1.1

0.1.1.0

extensible library for static site generation

  Sources   Download

MIT

The Requires

 

static site generator

18/04 2016

0.1.0

0.1.0.0

extensible library for static site generation

  Sources   Download

The Requires

 

static site generator