<?php /* |-------------------------------------------------------------------------- | adamsmeat/output routes |-------------------------------------------------------------------------- | | These routes are concerned with the package only | */ Route::get('output', function () { return Output::sendView(); }); Route::get('output/readme', function () { $md_content = file_get_contents(Output::cfg('readme_file')); return Output::cfg(array('globals.show_page_title' => false))->sendView()->with('content', Output::md_to_html($md_content)); }); // demo using theme Route::get('output/theme/basic', function () { //Output::theme('basic')->sendView(); return Output::setTheme('basic')->sendView(); }); Route::get('template', function () { $config = array('assets.js.footer.LoginCtrl' => '/packages/adamsmeat/output/js/LoginCtrl.js'); return Output::cfg($config)->sendView()->nest('content', 'output::pages.test'); }); Route::post('template', function () { return Response::json(array('firstName' => 'Paolo', 'lastName' => 'Umali')); }); // angularjs Route::get('angularjs', function () {