PHPackages                             php-pure/themer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-pure/themer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-pure/themer
===============

A markdown based documentation

1884PHP

Since Sep 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/php-pure/themer)[ Packagist](https://packagist.org/packages/php-pure/themer)[ RSS](/packages/php-pure-themer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Pure's Themer
=================

[](#php-pures-themer)

A template, the converts markdown `.md` files into well static html page, depending on the theme you will use.

Index
-----

[](#index)

- [The Factory](#the-factory)
- [Themes](#themes)
- [Test](#test)
- [Writing your own Theme](#writing-your-own-theme)

[The Factory](#the-factory)
===========================

[](#the-factory)

We have a factory that handles combines all the processes and calls the themes you need.

### $map

[](#map)

Just a map for our markdowns.

```
$map = [
    'Prologue' => [
        'Setup' => __DIR__.'/docs/prologue/setup.md',
        'Change Log' => __DIR__.'/docs/prologue/change_log.md',
    ],
];
```

### $view\_variables

[](#view_variables)

You can freely pass a variable in the factory. Please take a note that this variables will be over-written/added a new variable when you will be using a different theme.

```
$view_variables = [
    'uri' => 'http://example.com',
    'title' => 'My Documentation',
    // and so on ...
];
```

Finally to call the factory, Please take a note that the below code is still incomplete, that we still need to review how the theme works.

```
