Skip to content

Instantly share code, notes, and snippets.

@rintaun
Created June 5, 2012 02:50
Show Gist options
  • Save rintaun/2872254 to your computer and use it in GitHub Desktop.
Save rintaun/2872254 to your computer and use it in GitHub Desktop.
<?php
use Ribcage\Rib;
/**
* public function render($filename, $renderer = null);
*
* @param $filename Filename relative to the "views" folder in the
* root directory.
* @param $renderer (Optional) Name of the renderer class to use;
* determined by file extension by default.
* @return string
*/
new Rib('/', function() {
return $this->render('home.md'); // Uses Markdown renderer
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment