Example #1
0
    def gen(self):
        self.generatejsfiles()
        self.generatecssfiles()
        r =  "<!DOCTYPE html><html><head><title>Торгуй - легко!!!</title>"
        r += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
        r += "<meta name='yandex-verification' content='6aa20153161df0f4' />"
        for s in self.css:
            r += hg.wh("", "link", 'rel="stylesheet"' + hg.at("href", s))
        r += hg.wh("", "link", 'rel="stylesheet"' + hg.at("href", "//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"))
        r += hg.wh("", "script", hg.at("src", "//code.jquery.com/jquery-1.9.1.js"))
        r += hg.wh("", "script", hg.at("src", "//code.jquery.com/ui/1.10.3/jquery-ui.js"))
        for s in self.scripts:
            r += hg.wh("", "script", hg.at("src", s))
        r += "</head><body>"
		#r += "Hello word"
        for i in self.items:
            r += i.text();
        r += "</body></html>"
        return r
		
#t = htmlgn()
#print(t.gen())
Example #2
0
 def text(self):
     r = ""
     for i in self.items:
         r += i.text
     r = hg.wh("", "<div>", self.idtext())
     return r