shithub: werc

Download patch

ref: 2cd78078fbd0c0c3db3b64d03fb2442971513708
parent: 159c3988021efb2bcbf22bc1a6aa856259eb0728
author: uriel <uriel@engel.se.cat-v.org>
date: Thu Jan 22 04:23:20 EST 2009

Add conf_enable_blog function to blagh to be used to setup a blog.

--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -1,3 +1,11 @@
+# XXX Should use a function to enable blagh instead of depending on blaghDirs, that way we can save the path of the root of the blog.
+fn conf_enable_blog {
+    blagh_root=$conf_wd
+    blagh_dirs=$*
+    if(~ $#blagh_dirs 0)
+        blagh_dirs=$conf_wd
+}
+
 fn blagh_init {
     if(~ $#blaghDirs 0 && ~ $local_path */[bB]log/index*)
         blaghDirs=( . )