]> oss.titaniummirror.com Git - webber.git/commitdiff
hierarchy.py: fixed wrong link, minor rewording
authorHolger Schurig <holgerschurig@gmail.com>
Thu, 24 Jun 2010 08:21:27 +0000 (10:21 +0200)
committerHolger Schurig <holgerschurig@gmail.com>
Thu, 24 Jun 2010 08:21:48 +0000 (10:21 +0200)
in/plugins/hierarchy.md
plugins/hierarchy.py

index 15388b16734eda50646f27f9a9f664b24bfcab7a..a7b6bf1822f866dcac4e06f70d783f7fa7ffafa3 100644 (file)
@@ -2,6 +2,7 @@ title: Generate hierarchy
 linktitle: hierarchy.py
 parent: Plugins
 ctime: 2009-06-26
 linktitle: hierarchy.py
 parent: Plugins
 ctime: 2009-06-26
+mtime: 2009-06-26
 
 This is one of the more complex plugins, used to generate menus and
 breadcrumbs. For this, it reads certain keyword from the
 
 This is one of the more complex plugins, used to generate menus and
 breadcrumbs. For this, it reads certain keyword from the
@@ -93,7 +94,7 @@ Here's a sample Mako template excerpt:
 = Generation of a side-menu =
 
 This again is done via a suitable [[template_mako]]. The
 = Generation of a side-menu =
 
 This again is done via a suitable [[template_mako]]. The
-template uses the function "`get_sidemenu()`" and returns (level,
+template uses the function "`get_sidemenu()`" which returns (level,
 part_of_path, is_current, title, link) tuples. Again all links are relative
 to the calling page.
 
 part_of_path, is_current, title, link) tuples. Again all links are relative
 to the calling page.
 
@@ -105,7 +106,8 @@ to the calling page.
 * "`title`" is the full title for the page
 * "`link`" is the relative URL to the page
 
 * "`title`" is the full title for the page
 * "`link`" is the relative URL to the page
 
-Here's a sample Mako template excerpt that converts this into a HTML menu:
+Here's a sample [[Mako template|template_mako]] excerpt that converts
+this into a HTML menu:
 
        <ul id="sidebar">
        % for level, part_of_path, current, page, link in get_sidemenu():
 
        <ul id="sidebar">
        % for level, part_of_path, current, page, link in get_sidemenu():
index 1b82782957b1c6fa98404d83f9c57cc95d9233d9..92279c39578d9e9b81c1d9d1919f734b7dc37c85 100644 (file)
@@ -31,7 +31,7 @@ def memorize_parent(title, parent, order=100):
                _childs[parent] = []
        _childs[parent].append( (order, title) )
        _parent[title] = parent
                _childs[parent] = []
        _childs[parent].append( (order, title) )
        _parent[title] = parent
-       
+
 
 #
 # The "scan" plugins should scan for meta-data, mostly for links.
 
 #
 # The "scan" plugins should scan for meta-data, mostly for links.