pnbp

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5ca243316aacfa10b5cbfb0f0a8a0d249251cd8d
parent ed66fce9277ddfe264f3cfcf140e0724093399ba
Author: Paul Longtine <paullongtine@gmail.com>
Date:   Wed May 21 20:11:16 2014

changed print statements to be only in the main program

Diffstat:
 compile.py           | 5 +----
 includes/header.html | 3 ++-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/compile.py b/compile.py @@ -8,8 +8,6 @@ import os, shutil, mod, json def main(): - print("Going through pages...") - site = {} #Loops through defined "sites" @@ -18,8 +16,6 @@ def main(): template = generateTemplate(template,v['pagevar']) - print("page '{}' using template '{}'...".format(name,v['template'])) - site[name] = runMod(template,v['pagemod'],name) buildSite(site) @@ -80,6 +76,7 @@ def buildSite(site): if __name__ == "__main__": + print("Going through pages...") pages = open("pages.json") pagedata = json.load(pages) pages.close() diff --git a/includes/header.html b/includes/header.html @@ -1,4 +1,5 @@ <div> <h1>This is in fact not a blog.</h1> - <a href="/">Home</a>&nbsp;<a href="/test/">Test</a> + <a href="/">Home</a>&nbsp;<a href="/test/">Test</a><br/> + <a href="./all">all</a> </div>