Themer is a Tumblr template parser for PHP 5.4+.
Just add it to your
composer.json file and run:
$ composer install $ vendor/bin/themer authorize $ vendor/bin/themer init $ vendor/bin/themer start
PHP 5.4+ is required.
Get some template data
Themer uses data pulled from the Tumblr v2 API as placeholder data when
rendering your theme. As a result, you must register an application
and obtain an api key (referred to as your
OAuth Consumer Key). You can do
that here: http://www.tumblr.com/oauth/apps
After that, use the
authorize command to authorize your Themer installation
to interact with the API:
$ themer authorize
Initialize your project directory
After authorizing Themer, you can use the command line tool to setup your theme directory like so:
$ themer init
themer.yml configuration file generated by the
All of the available options in that file are accompanied by a description of
what they do.
Take note of the
themes key, an array of paths to theme files relative to the
project directory. The
init command attempts to discover any
at the root and stores them in this key. A typical configuration might look like
themes: - mycooltheme.html - mycooltheme-mobile.html
The first one is always the considered the default, but you can easily switch between any theme specified in this file via the Themer web UI.
data:load command and follow the instructions:
$ themer data:load [--blog BLOG]
- Post Parsing
- Panorama: Everything.
- Improve documentation.
- Test the
- Refactor the
Themer\Tumblr\Templatizeclass (maybe as part of
- Improve API key storage & security.
- Add Notes parsing.
- Improve this README.
Themer is Copyright © 2011 Braden Schaeffer. It is free software, and may be redistributed under the terms specified in the LICENSE file.