Skip to content

Commit

Permalink
Merge pull request #78 from seybsen/patch-1
Browse files Browse the repository at this point in the history
Add closing curly brace
  • Loading branch information
jondot committed Oct 23, 2018
2 parents e68ba4d + 91b9cf1 commit 1de07cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ This way refers to the `message` CLI argument or prompt parameter, through the `
```javascript
<% if(locals.message){ -%>
message: <%= message %>
<% -%>
<% } -%>
```

There's a small gem here, in the form of `-%>`. This will slurp the last newline, so that the `if(..){` clause won't generate garbage newlines into our final output.
Expand Down

0 comments on commit 1de07cf

Please sign in to comment.