예제 #1
0
 def __new__(cls, src):
     return HTMLSource.__new__(cls, html.Markup('<script type="text/javascript">%s</script>') % src)
예제 #2
0
 def __new__(cls, link):
     return Link.__new__(cls, html.Markup('<script type="text/javascript" src="%s"></script>') % link)
예제 #3
0
 def __new__(cls, src):
     return HTMLSource.__new__(cls, html.Markup('<style type="text/css">%s</style>') % src)
예제 #4
0
 def __new__(cls, link):
     return Link.__new__(cls, html.Markup('<link rel="stylesheet" type="text/css" href="%s" />') % link)