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
it allows you to debug your program online (with a stack trace for every line of G-code), and a debugger friendly mechanism.</p>
<p>It is also easy to learn, with examples you can browse online</p>
"""

print """ 

<h2>Intellectual Property</h2>

You won't find much here. We simply have fresh ideas, and we want to hear yours.

<p>
<p>
<i>
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. Its peculiar character, too, is that no one possesses the less, because every other possesses the whole of it. He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.
<p>
Thomas Jefferson, 1813
</i>
<p>
<p>

"""

print '<br>Hugomatic is a Montreal based company'


print '</div>'

printFooter()

print "</body>"