|
@@ -35,11 +35,13 @@
|
|
|
* 'mustache.loader' => new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__)
|
|
* 'mustache.loader' => new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__)
|
|
|
* ));
|
|
* ));
|
|
|
*
|
|
*
|
|
|
- * $app->get('/{name}', function() use ($app) {
|
|
|
|
|
|
|
+ * $app->get('/{name}', function($name) use ($app) {
|
|
|
* return $app['mustache']->render('hello', compact('name'));
|
|
* return $app['mustache']->render('hello', compact('name'));
|
|
|
* })
|
|
* })
|
|
|
* ->value('name', 'world');
|
|
* ->value('name', 'world');
|
|
|
*
|
|
*
|
|
|
|
|
+ * // ...
|
|
|
|
|
+ *
|
|
|
* __halt_compiler();
|
|
* __halt_compiler();
|
|
|
*
|
|
*
|
|
|
* @@ hello
|
|
* @@ hello
|