Skip to content

Commit

Permalink
README: fixed body_template example
Browse files Browse the repository at this point in the history
  • Loading branch information
zuazo committed Apr 7, 2013
1 parent 31a9df6 commit d74f555
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ This configuration option needs to contain the full path of an erubis template.
```ruby
# recipe "myapp::sns_handler"

template "/tmp/chef_handler_sns_body.erb" do
source "chef_handler_sns_body_erb.erb"
cookbook_file "chef_handler_sns_body.erb" do
path "/tmp/chef_handler_sns_body.erb"
# [...]
end

Expand All @@ -178,7 +178,7 @@ end
```

```erb
<%# template "myapp/templates/default/chef_handler_sns_body_erb.erb" %>
<%# file "myapp/files/default/chef_handler_sns_body_erb.erb" %>
Node Name: <%= node.name %>
<% if node.attribute?("fqdn") -%>
Expand Down

0 comments on commit d74f555

Please sign in to comment.