Created
October 1, 2013 10:31
-
-
Save abangratz/6776583 to your computer and use it in GitHub Desktop.
Integrating usersnap - haml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:javascript | |
var _usersnapconfig = { | |
emailBox: true, | |
commentBox: true, | |
apiKey: "YOUR-API-KEY-HERE" | |
// for heroku: | |
// apiKey: "#{ENV['USERSNAP_APIKEY']}" | |
}; | |
(function() { | |
var s = document.createElement("script"); | |
s.type = "text/javascript"; | |
s.async = true; | |
s.src = '//api.usersnap.com/usersnap.js'; | |
var x = document.getElementsByTagName('head')[0]; | |
x.appendChild(s); | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= render partial: 'usersnap' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for updating our list (PHP, Python an RoR) with Haml! http://usersnap.com/blog/development-workflow/