def after_features(features)
stop_buffering :features
builder.declare!(
:DOCTYPE,
:html,
:PUBLIC,
'-//W3C//DTD XHTML 1.0 Strict//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'
)
builder.html(:xmlns => 'http://www.w3.org/1999/xhtml') do
builder.head do
builder.meta(:content => 'text/html;charset=utf-8')
builder.title 'Cucumber'
inline_css
end
builder.body do
builder.div(:class => 'cucumber') do
builder << buffer(:features)
builder.div(format_duration(features.duration), :class => 'duration')
end
end
end
end