q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b04c0cf241763d6153860eaa6520adc0cd26d7d9

commit b04c0cf241763d6153860eaa6520adc0cd26d7d9
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri Aug 26 14:28:11 2016 +0100

    docs: add writer support for pagetitle plugin
---
 src/scripts/elua/apps/docgen/writer.lua | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/scripts/elua/apps/docgen/writer.lua 
b/src/scripts/elua/apps/docgen/writer.lua
index 0bfacb7..9f79307 100644
--- a/src/scripts/elua/apps/docgen/writer.lua
+++ b/src/scripts/elua/apps/docgen/writer.lua
@@ -48,7 +48,7 @@ M.Writer = util.Object:clone {
     INCLUDE_NAMESPACE = 2,
     INCLUDE_TAG = 3,
 
-    __ctor = function(self, path)
+    __ctor = function(self, path, title)
         local subs
         if type(path) == "table" then
             subs = dutil.path_join(unpack(path))
@@ -57,6 +57,10 @@ M.Writer = util.Object:clone {
         end
         dutil.mkdir_p(subs)
         self.file = assert(io.open(dutil.make_page(subs), "w"))
+        if title then
+            self:write_raw("~~Title: ", title, " ~~")
+            self:write_nl()
+        end
     end,
 
     write_raw = function(self, ...)

-- 


Reply via email to