view view/site/library/@Collection.tt @ 7:fa7a99c2d079

dox library templates and schemas
author sergey
date Wed, 14 May 2014 01:22:21 +0400
parents f1ce08199a08
children 7d92a42f8e18
line wrap: on
line source

[%
	document.layout = 'library';
	compounds = resource.GetCompoundsLocation();
 	IF model.indexDocument;
		display_model(
			model.indexDocument,
			args = {
				compounds = compounds.toString(),
				members = resource.GetMembersLocation().toString()
			}
		);
	ELSE;
%]
	<h1>$model.description</h1>
	<ul>
	[% FOREACH item IN model.GetPackages() %]
		<li><a href="[% compounds.Child(item.doxId) %]">$item.name</a></li>
	[% END %]
	</ul>
[% END %]