Exemplo n.º 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())
Exemplo n.º 2
0
 def text(self):
     return '<input' + self.idtext() + hg.at("placeholder", self.placeholder) + hg.at("value", self.value) + '></input>'
Exemplo n.º 3
0
 def text(self):
     return "<a " + self.idtext() + hg.at("href", self.href) + self.evtext() +">"+ self.caption + "</a>"
Exemplo n.º 4
0
    def idtext(self):
	    return hg.at("id", self.id) + hg.at("class", self._class)