<h1>[% thing.title %]</h1>
<p>[% thing.description %]</p>

[% FOREACH rel IN factory.relationships(thing.moniker, 'has_many') %]

	[% method = rel.key %]
	[% foreign_moniker = rel.value %]

	<h2>[% factory.plural(foreign_moniker) %]</h2>
	[% FOREACH x IN thing.$method %]
		<p>[% IF x == highlight %]<b>[% ELSE %]<a href="[% config.url %]?[% x.moniker %]=[% x.id %]">[% END %]
			[% x.title %]
		[% IF x == highlight %]</b>[% ELSE %]</a>[% END %]
		[% IF x.description %]<br>[% x.description %][% END %]</p>
	[% END %]

[% END %]
