Skip to content

Commit

Permalink
Extends macro must be placed in template head
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Jul 2, 2016
1 parent d9f13d4 commit e16ee63
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/templates/api_docu_index.latte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{extends 'api_docu_base.latte'}

{**
* @param $sections array
*}

{extends 'api_docu_base.latte'}

{block title}Index{/block}

{block content}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/api_docu_matched.latte
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{extends 'api_docu_base.latte'}

{**
* @param $route Ublaboo\ApiRouter\ApiRoute
* @param $request Nette\Application\Request
Expand All @@ -13,8 +15,6 @@
{var $query_parameters[$name] = \Tracy\Debugger::dump($request->getParameter($name), TRUE)}
{/foreach}

{extends 'api_docu_base.latte'}

{block title}{$route->getPath()}{/block}

{block content}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/api_docu_one.latte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{extends 'api_docu_base.latte'}

{**
* @param $route Ublaboo\ApiRouter\ApiRoute
*}

{var $parameters = $route->getParameters()}

{extends 'api_docu_base.latte'}

{block title}{$route->getPath()}{/block}

{block content}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/api_docu_success.latte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{extends 'api_docu_base.latte'}

{**
* @param $route Ublaboo\ApiRouter\ApiRoute
* @param $request Nette\Application\Request
*}

{extends 'api_docu_base.latte'}

{block title}Success{/block}
{block body-class}success{/block}

Expand Down

0 comments on commit e16ee63

Please sign in to comment.