diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..83bc834 --- /dev/null +++ b/composer.lock @@ -0,0 +1,125 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" + ], + "hash": "658039ea843c9d957400408997842d2c", + "packages": [ + { + "name": "michelf/php-markdown", + "version": "1.3", + "source": { + "type": "git", + "url": "https://github.com/michelf/php-markdown.git", + "reference": "fcdd3e0781ae40c2b9847874e0755ff4f5559688" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/michelf/php-markdown/zipball/fcdd3e0781ae40c2b9847874e0755ff4f5559688", + "reference": "fcdd3e0781ae40c2b9847874e0755ff4f5559688", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-lib": "1.3.x-dev" + } + }, + "autoload": { + "psr-0": { + "Michelf": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Michel Fortin", + "email": "michel.fortin@michelf.ca", + "homepage": "http://michelf.ca/", + "role": "Developer" + }, + { + "name": "John Gruber", + "homepage": "http://daringfireball.net/" + } + ], + "description": "PHP Markdown", + "homepage": "http://michelf.ca/projects/php-markdown/", + "keywords": [ + "markdown" + ], + "time": "2013-04-11 18:53:11" + }, + { + "name": "twig/twig", + "version": "v1.12.3", + "source": { + "type": "git", + "url": "https://github.com/fabpot/Twig.git", + "reference": "v1.12.3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fabpot/Twig/zipball/v1.12.3", + "reference": "v1.12.3", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.12-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "http://twig.sensiolabs.org", + "keywords": [ + "templating" + ], + "time": "2013-04-08 12:40:11" + } + ], + "packages-dev": [ + + ], + "aliases": [ + + ], + "minimum-stability": "stable", + "stability-flags": [ + + ], + "platform": [ + + ], + "platform-dev": [ + + ] +} diff --git a/docs.html b/docs.html index d732b8a..b85c659 100644 --- a/docs.html +++ b/docs.html @@ -89,7 +89,9 @@
  • Themeing
  • -
  • Plugins
  • +
  • Plugins + +
  • Contribute
  • @@ -264,8 +266,10 @@ Robots: noindex,nofollow
  • before_404_load_content(&$file)
  • after_404_load_content(&$file, &$content)
  • config_loaded(&$settings)
  • +
  • before_read_file_meta(&$headers)
  • file_meta(&$meta)
  • content_parsed(&$content)
  • +
  • get_page_data(&$data, $page_meta)
  • get_pages(&$pages, &$current_page, &$prev_page, &$next_page)
  • before_twig_register()
  • before_render(&$twig_vars, &$twig)
  • @@ -273,6 +277,20 @@ Robots: noindex,nofollow

    Note that parameter variables are passed by reference so that they can be modified.

    +

    Adding Custom Meta

    +

    If you need to add custom meta variables you can do so using the before_read_file_meta() hook. For example:

    +
    public function before_read_file_meta(&$headers)
    +{
    +	$headers['layout'] = 'Layout';
    +}
    +

    Then in your content meta you would add the relevant meta value:

    +
    /*
    +Title: Example
    +Description: This is a description
    +Layout: 2col
    +*/
    +
    +

    You will then be able to access this value via the {{ meta.layout }} template variable.


    Contribute

    Help make Pico better by checking out the GitHub repoistory and submitting pull requests. If you find a bug diff --git a/plugins.html b/plugins.html index acfe6ab..4da3cf7 100644 --- a/plugins.html +++ b/plugins.html @@ -81,23 +81,74 @@



    + + + +
    +
    + + + +
    +
    + + + +
    +

    Have you created a plugin for Pico? Add it to the wiki and we'll put it up here.