Commits

f kunze committed d3d0ed1 Draft

added articletagline and articletype directives

Comments (0)

Files changed (2)

                         "drafts"), 
                     name + tinkerer.source_suffix)
 
-    writer.render(paths.post_template, path,
+    writer.render("post.rst", path,
             { "title"     : title,
               "content"   : "",
               "author"    : "default",
+               "articletagline" : "default", 
+               "articletype"    : "default",
               "categories": "none",
               "tags"      : "none"})
 
 
 
 
-    def write(self, content="", author="default", 
+    def write(self, content="", author="default", articletagline="default", articletype="default",
             categories="none", tags="none"):
         '''
         Writes the post template with given arguments.
         '''
-        writer.render(paths.post_template, self.path,
+        writer.render("post.rst", self.path,
                { "title"     : self.title,
                  "content"   : content,
                  "author"    : author,
+                 "articletagline" : articletagline,
+                 "articletype"    : articletype,
                  "categories": categories,
                  "tags"      : tags})