Sha256: 355dda32f482594fe2eab5ed7f6b61edf2754cfef8c69d37a8db639f5f2119dc

Contents?: true

Size: 1.57 KB

Versions: 5

Compression:

Stored size: 1.57 KB

Contents

<content:page>
	<?r
	base = self[:base]
	node = self[:node]
	symbol = self[:symbol]
	?>
	<content:heading><code class="language-#{symbol.language.name}">#{symbol.qualified_name}</code></content:heading>
	
	<?r
	if document = base.document_for(symbol)
		?>#{document.to_html}<?r
	elsif text = symbol.documentation&.text
		?>#{base.format(text.join("\n"), symbol)}<?r
	end
	?>
	
	#{partial 'content:signature', symbol: symbol}
	
	<?r
	nested = node.children.map{|name, child| base.best(child.values)}.select{|symbol| symbol.container?}
	
	if nested.any?
	?>
	<section>
	<h2>Nested</h2>
	
	<ul>
		<?r nested.each do |symbol| ?>
		<li><a href="#{base.link_for(symbol)}"><code class="language-#{symbol.language.name}">#{symbol.qualified_name}</code></a></li>
		<?r end ?>
	</ul>
	</section>
	<?r
	end
	?>
	
	<section>
	<h2>Definitions</h2>
	
	<?r
	node.children.each do |name, child|
		child.values.each do |symbol|
			if symbol.documentation and !symbol.container?
				?><section id="#{base.id_for(symbol)}"><h3><code class="language-#{symbol.language.name}">#{symbol.long_form}</code></h3><?r
				
				if documentation = symbol.documentation
					?>#{partial 'content:pragmas', symbol: symbol}<?r
					?>#{base.format(documentation.text, symbol)}<?r
					?>#{partial 'content:signature', symbol: symbol}<?r
				end
				
				if symbol.multiline?
				?><details>
						<summary><h4>Implementation</h4></summary>
						<pre><code class="language-#{symbol.language.name}">#{symbol.text}</code></pre>
					</details><?r
				end
				?></section><?r
			end
		end
	end
	?>
	</section>
	
	<content:discuss/>
</content:page>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
utopia-project-0.19.1 pages/source/show.xnode
utopia-project-0.19.0 pages/source/show.xnode
utopia-project-0.18.1 pages/source/show.xnode
utopia-project-0.18.0 pages/source/show.xnode
utopia-project-0.17.4 pages/source/show.xnode