Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dhotson committed Dec 2, 2011
1 parent 979ce57 commit 30b2f86
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -3,7 +3,7 @@ Jbuilder (for PHP)

A PHP port based loosely on the [original](https://github.com/rails/jbuilder):

Jbuilder gives you a simple DSL for declaring JSON structures that beats massaging giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops. Here's a simple example:
> Jbuilder gives you a simple DSL for declaring JSON structures that beats massaging giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops. Here's a simple example:
``` php
<?php
Expand All @@ -26,15 +26,15 @@ This will build the following structure:

``` javascript
{
"address": {
"city": "Melbourne",
"street": "Cambridge St"
},
"comments": [
"Comment: hello",
"Comment: world"
],
"name": "Dennis"
"address": {
"city": "Melbourne",
"street": "Cambridge St"
},
"comments": [
"Comment: hello",
"Comment: world"
],
"name": "Dennis"
}
```

Expand Down

0 comments on commit 30b2f86

Please sign in to comment.