Sha256: 7414121f91bfb07f71ad0db93a2c6bf58fe0396bad9e61c986f19936f84f9a61
Contents?: true
Size: 732 Bytes
Versions: 4
Compression:
Stored size: 732 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 ?>#{MarkupString.raw document.to_html}<?r else ?> <content:heading>Project</content:heading> <p>This project does not have a README.md file.</p> <?r end ?> </content:page>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
utopia-project-0.5.1 | pages/index.xnode |
utopia-project-0.5.0 | pages/index.xnode |
utopia-project-0.4.0 | pages/index.xnode |
utopia-project-0.3.0 | pages/index.xnode |