[MKDoc-commit] [1.6] finish factoring out comments loop as a fragment

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Thu Aug 25 12:48:53 BST 2005


Log Message:
-----------
[1.6] finish factoring out comments loop as a fragment

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/fragments/comments:
        en.html
    mkd/templates/document/default:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/comments/Attic/en.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -Ltemplates/fragments/comments/en.html -Ltemplates/fragments/comments/en.html -u -r1.1.2.1 -r1.1.2.2
--- templates/fragments/comments/en.html
+++ templates/fragments/comments/en.html
@@ -1,9 +1,19 @@
+<?xml version="1.0"?>
 <!--?
 
 This template is used for rendering a list of comments in documents. 
 
 ?-->
 
+<div
+  petal:omit-tag=""
+  petal:define="
+    comment               plugin: flo::plugin::Comment;
+    comment_uri           comment/uri;
+    Comment_Loop          self/components_list --comment;
+              "
+  xmlns:petal="http://purl.org/petal/1.0/"
+>
         <div
           class="comments"
           petal:condition="true: Comment_Loop"
@@ -24,3 +34,4 @@
           class="add-a-comment"
           petal:condition="true: comment/would_activate"
         >You may <a petal:attributes="href comment/uri" href="../../comment/en.html">add a comment</a> to this document.</p>
+</div>
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/document/default/Attic/en.html,v
retrieving revision 1.6.2.55
retrieving revision 1.6.2.56
diff -Ltemplates/document/default/en.html -Ltemplates/document/default/en.html -u -r1.6.2.55 -r1.6.2.56
--- templates/document/default/en.html
+++ templates/document/default/en.html
@@ -33,13 +33,10 @@
     headlines_uri         headlines/uri;
     meta                  plugin: flo::plugin::DC;
     meta_uri              meta/uri;
-    comment               plugin: flo::plugin::Comment;
-    comment_uri           comment/uri;
     children_id           string:children;
     Link_Loop             self/components_list --link;
     File_Loop             self/components_list --file;
     Body_Loop             self/components_list --text --html --image --photo --file --poll --discussion --headlines --rss --timerange;
-    Comment_Loop          self/components_list --comment;
               "
   petal:attributes="lang lang; xml:lang lang; dir dir"
   xmlns:petal="http://purl.org/petal/1.0/"


More information about the MKDoc-commit mailing list