halfdan/piwik_analytics — pull request #6 by berkes (2012-10-14 12:12:34+00:00)
Title: Move js to ERB template files

This allows implementers to override in their application when wanted.
It makes the code a little cleaner, no HEREDOC and no inline HTML/JS.

It requires a Rails::Engine instead of Railtie, so that the path discovery for templates works more predictable. This requires a small change to the includer and a rename of the railtie to engine.
This makes the plugin an engine, not a railtie; a rather large change IMHO.