Closed hinrik closed 10 years ago
Urk. I haven't written inline javascript in some time so this issue hasn't come up before. It seems like it could be an issue when we're rendering anything other than html partials (builder partials, javascript partials, etc...)
Any ideas on a good work-around for this?
Maybe that solution can be improved, but it works for me.
This problem also exists for json partials, although the pull request above fixes that (by not inserting comments if the format is unrecognised)
Went ahead and merged #8. Thanks for the nudge. Tagged and released 0.0.8.
Ah... I was a little hasty. It turns out that the code from that pull request outputs comments and the original partial for .js and .html partials, but for any other partial it outputs nothing at all, not even the original content of the partial!
Can you throw together a PR to address this? I haven't used this gem recently, but my gut feeling is that it should be a pretty simple change.
When JavaScript partials are rendered, this gem inserts
<!-- -->
comments, which are invalid, and cause problems in IE7 at least.