jferris/effigy

Option to bring back HTML with no DOCTYPE

croaky opened this issue · 1 comments

Right now, rendering with Effigy brings back the DOCTYPE, html, and body tags. My use case is on an Ajax call which just returns an HTML fragment that jQuery then replaces in the DOM. The extra tags around it messes up.

My current hack is:

def output
  current_context.to_html.sub(/.*<body>/, '').sub(/<\/body>.*/, '')
end

Fixed by 978fd82