{"issue":{"created_at":"2011-11-29T10:20:52Z","state":"open","updated_at":"2011-12-01T23:40:55Z","user":{"gravatar_id":"b3a3b92c5b66ce372e4540bbb601dbe3","id":493647,"url":"https://api.github.com/users/Teun","avatar_url":"https://secure.gravatar.com/avatar/b3a3b92c5b66ce372e4540bbb601dbe3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Teun"},"comments":5,"body":"In my website, for some reason (not sure why), the Writer on the ViewContext has different types. Sometimes it's an HttpWriter, sometimes a StreamWriter and sometimes the HtmlTextWriter that Moth expects. This happens in perfectly normal pages with a Master page and.ascx  partial views. All of the 3 types have been observed in the same partial view (but on different pages).\r\n\r\nThe whole implementation of the InlineScriptHelper seems a bit hackish. I'm not sure what would make a better way, but this does not seem to work for every Mvc2 page.","assignee":null,"id":2382687,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":7,"title":"Mvc2: Writer on ViewContext is not always HtmltextWriter","html_url":"https://github.com/janjongboom/Moth/issues/7","closed_at":null,"url":"https://api.github.com/repos/janjongboom/Moth/issues/7","milestone":null},"action":"created","comment":{"created_at":"2011-12-01T23:40:55Z","updated_at":"2011-12-01T23:40:55Z","user":{"gravatar_id":"b3a3b92c5b66ce372e4540bbb601dbe3","id":493647,"url":"https://api.github.com/users/Teun","avatar_url":"https://secure.gravatar.com/avatar/b3a3b92c5b66ce372e4540bbb601dbe3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Teun"},"body":"Posted pull request with fix. Didn't test om Mvc3 though.","id":2983993,"url":"https://api.github.com/repos/janjongboom/Moth/issues/comments/2983993"}}