Website for my Mothers yoga class (calling it Clarke Yoga for now) Signup to a one off/weekly/monthly donation payment system. All money raised goes towards resorces for early childhood education.

tiers of donation rewards


In [1]:
import os

In [2]:
import dominate
from dominate.tags import *

In [3]:
yogind = dominate.document(title='Clarke Yoga')

In [4]:
with yogind.head:
    link(rel='stylesheet', href='style.css')
    script(type='text/javascript', src='script.js')

with yogind:
    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        (h1(a('Clarke Yoga', href='http://brobeur.com/clarkeyoga')))
        img(scr='logo.gif')
        h2('awesome funtime yoga')
        #p(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()))
        a('about', href='#about')
        a('contact', href='#contact') 
        a('join', href='#join')
        
    with div(id='authors'):
        (a('test', href='https://reddit.com/u/test'))
            
    
    #with div(id='body').add(p()):
        #for i in jplis:
            #(img(i.lower(), src='%s' % i))
            #(a(i.lower(), href='%s' % i))
            
    with div(id='footer'):
        p(a('artcontroldrawsyou is open source', href='https://github.com/wcmckee/wcmckee-notebook'))


            

print yogind


<!DOCTYPE html>
<html>
  <head>
    <title>Clarke Yoga</title>
    <link href="style.css" rel="stylesheet">
    <script src="script.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="header">
      <h1>
        <a href="http://brobeur.com/clarkeyoga">Clarke Yoga</a>
      </h1>
      <img scr="logo.gif">
      <h2>awesome funtime yoga</h2>
      <a href="#about">about</a>
      <a href="#contact">contact</a>
      <a href="#join">join</a>
    </div>
    <div id="authors">
      <a href="https://reddit.com/u/test">test</a>
    </div>
    <div id="footer">
      <p>
        <a href="https://github.com/wcmckee/wcmckee-notebook">artcontroldrawsyou is open source</a>
      </p>
    </div>
  </body>
</html>

In [5]:
cyog = ('/var/www/clarkeyoga')

In [6]:
os.chdir(cyog)

In [7]:
os.listdir(cyog)


Out[7]:
['index.html']

In [8]:
ophtml = open('index.html', 'w')
ophtml.write(str(yogind))

In [8]:


In [8]:


In [44]:


In [ ]: