Sha256: 6fb2f0b3688f514a10e99b077dcd88a2baf90e76adae43ec4b5299978499c7cf

Contents?: true

Size: 650 Bytes

Versions: 6

Compression:

Stored size: 650 Bytes

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
<%
extend ::Kramdown::Utils::Html
title = ''
if @converter
  h = @converter.root.children.find {|c| c.type == :header}
  if h
    collector = lambda {|c| c.children.collect {|cc| cc.type == :text ? escape_html(cc.value, :text) : collector.call(cc)}.join('')}
    title = collector.call(h)
  end
end
%>
		<title><%= title %></title>
		<link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
        <%= @body %>
    </body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rpub-0.5.0 support/layout.html
rpub-0.4.0 support/layout.html
rpub-0.3.0 support/layout.html
rpub-0.2.1 support/layout.html
rpub-0.2.0 support/layout.html
rpub-0.1.0 support/layout.html