Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoungblood committed May 6, 2022
1 parent 3e8a6ad commit 58a9e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require __DIR__ . '/vendor/autoload.php';

# Usage
## render::hbs($request, $response, $parameters)
Renders a specific Handlebars template with an array of data, including any partials and global `locals` variables array. Returns a standard Slim (PSR7) response object with optional HTTP status code.
Renders a specific Handlebars template with an array of data, including any partials and global `locals` variables array. Returns a standard Slim (PSR-7) response object with optional HTTP status code.
```php
$app->get('/', function ($req, $res, $args) {

Expand Down Expand Up @@ -58,7 +58,7 @@ $GLOBALS['locals'] = [


## render::json($request, $response, $parameters)
Renders an array or data as standard Slim (PSR7) response object with `application/json` content type and optional HTTP status code.
Renders an array or data as standard Slim (PSR-7) response object with `application/json` content type and optional HTTP status code.
```php
$app->get('/json/', function ($req, $res, $args) {

Expand Down

0 comments on commit 58a9e98

Please sign in to comment.