Skip to content

Instantly share code, notes, and snippets.

@daslicht
Created April 2, 2014 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daslicht/9935730 to your computer and use it in GitHub Desktop.
Save daslicht/9935730 to your computer and use it in GitHub Desktop.
class Beer {
...
function show($f3, $params) {
$f3->set('foo','bar');
$f3->set('content','welcome.htm');
$template=new Template;
echo $template->render('layout.htm');
}
...
$f3->route('GET @beer_list: /beer/@action', 'Beer->@action');
...
ui/layout.html:
<include href="{{ @content }}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment