2017 © Pedro Peláez
 

library van-de-graaff

image

jeremytubbs/van-de-graaff

  • Friday, March 18, 2016
  • by jeremytubbs
  • Repository
  • 1 Watchers
  • 1 Stars
  • 124 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 38 % Grown

The README.md

Van de Graaff Static Package

Discharge implementation -, (*1)

    $file = Jeremytubbs\VanDeGraaff\Discharge(file_get_contents('path/to/file.md'));
    $frontmatter = $file->getFrontmatter(); // returns frontmatter array
    $content = $file->getContent(); // returns HTML content
    $output = $file->getOutput(); // returns both frontmatter array and HTML content
    $markdown = $file->getMarkdown(); // returns content as markdown

Generate implementation -, (*2)

    $generator = Jeremytubbs\VanDeGraaff\Generate($array, $markdown);
    $static = $generator->makeStatic();
    file_put_contents('path/static.md', $static);

The Versions

18/03 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar jeremytubbs

17/01 2016
16/10 2015
14/10 2015
05/10 2015
02/10 2015