Sha256: 597ac55923c72a1a5a9053e3c28200769c01b25be1ecfcefd5372413930c9be6

Contents?: true

Size: 758 Bytes

Versions: 11

Compression:

Stored size: 758 Bytes

Contents

<content:page>
	<?r
	if document = self[:document]
		children = document.root.children
		
		if children.first.type == :header
			header = children.shift
			title = header.children.first
			case title.type
			when :text
				?><content:heading>#{title.value}</content:heading><?r
			when :img
				self.document.attributes[:title] ||= title.attr["alt"]
				?><header><img src="#{title.attr["src"]}" /></header><?r
			else
				?><content:heading>Project</content:heading><?r
			end
		else
			?><content:heading>Project</content:heading><?r
		end
		
		?><main>#{MarkupString.raw document.to_html}</main><?r
	else
		?>
		<content:heading>Project</content:heading>
		
		<main><p>This project does not have a README.md file.</p></main>
		<?r
	end
	?>
</content:page>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
utopia-project-0.9.0 pages/index.xnode
utopia-project-0.8.4 pages/index.xnode
utopia-project-0.8.3 pages/index.xnode
utopia-project-0.8.2 pages/index.xnode
utopia-project-0.8.1 pages/index.xnode
utopia-project-0.8.0 pages/index.xnode
utopia-project-0.7.1 pages/index.xnode
utopia-project-0.7.0 pages/index.xnode
utopia-project-0.6.2 pages/index.xnode
utopia-project-0.6.1 pages/index.xnode
utopia-project-0.6.0 pages/index.xnode