Permalink
Browse files

adds todos

  • Loading branch information...
jackmcdade committed Mar 30, 2012
1 parent 3764732 commit 9dbe8629246fd9d5bf967f619017382a033e88a5
Showing with 32 additions and 3 deletions.
  1. +1 −1 README.md
  2. +31 −2 index.php
View
@@ -1,3 +1,3 @@
# Chronical
It ain't ready yet. But it should be pretty cool.
It ain't ready yet. But it won't be long.
View
@@ -16,6 +16,14 @@
// This is today
$app->today = date($app->config['dateFormat']);
/**
* Functions
*
* Why not keep it all in one file.
* This stuff does the dirty work.
*/
function get_meta($date) {
$app = Slim::getInstance();
@@ -28,6 +36,29 @@ function get_meta($date) {
return array_merge($defaults, $meta);
}
// @todo functions
function parse_content()
{
// probably should be a class
$app = Slim::getInstance();
}
function find_latest()
{
$app = Slim::getInstance();
}
function find_next()
{
$app = Slim::getInstance();
}
function find_prev()
{
$app = Slim::getInstance();
}
//
/**
* The Routes: Tread lightly!
*
@@ -36,7 +67,6 @@ function get_meta($date) {
* They make the magic happen.
*/
// There is no homepage. Only the latest.
$app->get('/', function () use ($app) {
// @todo make this the "latest", not just today
@@ -46,7 +76,6 @@ function get_meta($date) {
$app->get('/:date', function ($date) use ($app) {
// $data = Spyc::YAMLLoad($app->config['contentDir'] .'/'. $date .'/meta.yaml');
$data = get_meta($date);
$app->render($date.'/index.php', $data);

0 comments on commit 9dbe862

Please sign in to comment.