add ~~title auto substitution with dirbasename
authorgc <gc>
Sat, 5 Mar 2005 12:41:24 +0000 (12:41 +0000)
committergc <gc>
Sat, 5 Mar 2005 12:41:24 +0000 (12:41 +0000)
booh

diff --git a/booh b/booh
index 6953f17968de8552b97e9be8eb9cbe70d41dfd77..deb3ddc7335dfb4d2a1f2ad5d8b7f37876e0a5ea 100755 (executable)
--- a/booh
+++ b/booh
@@ -175,6 +175,7 @@ def walk_source_dir
         images4js = final_images.collect { |img| "\"#{img}\"" }.join(', ')
         for i in html
             i.sub!(/~~images/, images4js)
+            i.sub!(/~~title/, File.basename(dir))
         end
             
         File.open("#{dest_dir}/index.html", "w").write(html)