diff 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 diff
--- a/view/site/library/@Collection.tt	Mon May 12 18:05:30 2014 +0400
+++ b/view/site/library/@Collection.tt	Wed May 14 01:22:21 2014 +0400
@@ -0,0 +1,20 @@
+[%
+	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 %]
\ No newline at end of file