diff --git a/distribusi.py b/distribusi.py index 32ea3e6..e530b36 100755 --- a/distribusi.py +++ b/distribusi.py @@ -13,11 +13,13 @@ distbusi is a content management system for the web that produces static index p parser.add_argument('-d', '--directory', help="Select which directory to distribute") parser.add_argument('-v', '--verbose', help="Print verbose debug output", action="store_true") parser.add_argument('-t', '--thumbnail', help="Generate 150x150 thumbnails for images", action="store_true") +parser.add_argument('-n', '--no-template', help="Don't use the template to ouput html",action="store_true") #Todo: # build an 'undo' function that traverses the same directories and removes the index.html files # set the 'maxdepth' # toggle .folders +# find better way for template handling? args = parser.parse_args() @@ -51,7 +53,6 @@ def thumbnail(image, name): def div(mime, tag, *values): #name, full_path id_name = values[0].split('.')[0].replace(' ', '_') - thumbnail = values[1] if 'image' in mime: html = '