From 5e58724654103adf3f73c345dc2f1bd74ace2b4d Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 20 Apr 2015 10:13:49 +0200 Subject: [PATCH] Corrected bugs --- prototype/index.py | 5 +++++ webtools/Web.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/prototype/index.py b/prototype/index.py index 2a64cf9..3d11145 100755 --- a/prototype/index.py +++ b/prototype/index.py @@ -12,14 +12,19 @@ def main(): head = Web.Element(Web.ROOT_DIR + 'templates/head.html') body = Web.Element(Web.ROOT_DIR + 'templates/body.html') jsIncludes = Web.Element(Web.ROOT_DIR + 'templates/jsIncludes.html') + mainJs = Web.Element() mainJs.open_string = ' ' content = Web.Element('index.html') + staticPath = Web.Element() + staticPath.open_string = ' ' + page.add_child(head) page.add_child(body) body.add_child(content) body.add_child(jsIncludes) + jsIncludes.add_child(staticPath) jsIncludes.add_child(mainJs) page.print() diff --git a/webtools/Web.py b/webtools/Web.py index c60a750..ab9d11c 100755 --- a/webtools/Web.py +++ b/webtools/Web.py @@ -5,7 +5,7 @@ import sys import os # ROOT_DIR = '/'.join(__file__.split('/')[:-2]) + '/' -ROOT_DIR = '/home/thomas/stage/javascript/web/' +ROOT_DIR = '/home/thomas/stage/javascript/master/' class Element: