Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason LaChapelle committed Aug 31, 2015
1 parent 3b7fcb5 commit 7a0b6b4
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions README.md
Expand Up @@ -65,7 +65,7 @@ _Note that all templates return a new object / array and will not modify the exi
{
userName: "awesome_man",
userId: 42,
<strong>userGroup: {{groupId}}</strong>
<strong>userGroup: groupId</strong>
}
</pre>

Expand All @@ -79,8 +79,8 @@ also use standard JavaScript accessors, i.e: `some.value`, `some.other["value"]`
{
userName: "awesome_man",
userId: 42,
userGroup: {{groupId}},
<strong>full_name: {{firstName}} + ' ' + {{lastName}}</strong>
userGroup: groupId,
<strong>full_name: firstName + ' ' + lastName</strong>
}
</pre>

Expand All @@ -93,19 +93,18 @@ also use standard JavaScript accessors, i.e: `some.value`, `some.other["value"]`
{
userName: "awesome_man",
userId: 42,
userGroup: {{groupId}},
full_name: {{firstName}} + ' ' + {{lastName}},
userGroup: groupId,
full_name: firstName + ' ' + lastName,
<strong>address: {{_ | address}}</strong>
}
</pre>

<pre>
// address.kale
{
street: {{street1}},
city: {{city}},
state: {{state}},
zipCode: {{zip_code}}
street: street1,
city, state,
zipCode: zip_code
}
</pre>

Expand All @@ -122,8 +121,8 @@ imported file is how you will reference it in your action._
{
userName: "awesome_man",
userId: 42,
userGroup: {{groupId}},
full_name: {{firstName}} + ' ' + {{lastName}},
userGroup: groupId,
full_name: firstName + ' ' + lastName,
address: {{_ | @address}},
<strong>homePhone: {{phones | filter: { type: 'home' }
| first
Expand Down Expand Up @@ -188,9 +187,9 @@ This example is taken almost directly from `example1.js` in the examples folder.
```
// user.kale
{
id: {{userId}},
userName: {{userName}},
firstName: {{firstName}},
id: userId,
userName,
firstName: firstName,
homePhone: {{ phones | filter: { type: 'home' }
| first
| pluck: 'number' }},
Expand All @@ -202,14 +201,13 @@ This example is taken almost directly from `example1.js` in the examples folder.
// address.kale
{
short: {{street1}} + '\n' +
{{city}} + ', ' +
{{state}} + ' ' +
{{zipCode}},
street: {{street1}},
city: {{city}},
state: {{state}},
zip: {{zipCode}}
short: street1 + '\n' +
city + ', ' +
state + ' ' +
zipCode,
street: street1,
city, state,
zip: zipCode
}
```

Expand Down

0 comments on commit 7a0b6b4

Please sign in to comment.