Ejemplo n.º 1
0
def printIndex(dom):
    
    print "Content-Type: text/html"
    print
    
    printHead('Welcome to Hugomatic', ('banner','index','nav','footer'), extraText=HtmlTree.html_header_text)
    printBanner()
    printIndextNavBar()
    #printContactNavBar()
    
    print  "<h1>Hugomatic CNC</h1><h2>online GCODE generators</h2>"
    print "<br>"
    print '<div id="main">'
 
    ##print '<div id="browser" class="filetree treeview-famfamfam">'
    tree = HtmlTree("browser")
    add_tree_nodes_from_xml(tree, dom)
    html_tree = tree.get_html()
    print html_tree
    ##print '</div>'
    
        
    print """
    
  <div id="image">
   <IMG SRC="images/index.jpg">
  </div>
"""
   
    print '</div>' # main

    printFooter()
    print "</body>"
Ejemplo n.º 2
0
# [email protected]
#

try:
    # google app engine
    from hugomatic.web.utils  import  printHead, printBanner, printFooter, printAboutNavBar

except:
    from utils import  printHead, printBanner, printFooter, printAboutNavBar


print "Content-Type: text/html"
print

printHead('About Hugomatic',('nav','banner','footer'), path="")
printBanner( path='')

printAboutNavBar()
       

print "<h1>About Hugomatic</h1>"
print '<div id="about">' 

print """

<h2>What we do</h2>

Hi, my name is Hugo Boyer and I founded a micro company called Hugomatic so I could share my fascination for robotics, electronics, computers and machines with my friends. 
We build Open Source platform to generate Open Physical Objects. We supply free projects for hobby CNC milling and lathes. 
We want to empower people to make professional objects simply, and want to remove the complexity of hobby robotics. 
<h3>Free designs</h3>