Skip to content

Commit

Permalink
Use normal ERB syntax and mention not HTML escaping output in README …
Browse files Browse the repository at this point in the history
…example.

Fixes #20.
  • Loading branch information
tristandunn committed Dec 3, 2013
1 parent 16fc0d7 commit 0abc242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ A fake [Pusher](http://pusher.com) server for development and testing.
<script>
<% if defined?(PusherFake) %>
// Test environment.
var instance = <%== PusherFake.javascript %>;
//
// Note: Ensure output is not HTML escaped, such as with the raw helper in Rails.
var instance = <%= PusherFake.javascript %>;
<% else %>
// Other environments, such as production.
var instance = new Pusher(...);
Expand Down

0 comments on commit 0abc242

Please sign in to comment.