pythonã§importæ–‡ã§æŒ‡å®šã—ãŸã‚¯ãƒ©ã‚¹ã‚’動的生æˆã—ãŸã„ posted by jun-g at Tue, 03 Apr 2007 02:16 JST ã“ã“ã‚“ã¨ã“ãšãƒ¼ã£ã¨æ‚©ã‚“ã§ã¦è§£æ±ºæ–¹æ³•ãŒã‚ã‹ã‚‰ã‚“ã®ã§ãƒ–ãƒã‚°ã§æ™’ã—ã¦ã¿ã‚‹ã€‚ pythonã§MochiKit.DOMã®createDOMã¿ãŸã„ã®ãŒã‚ã£ãŸã‚‰ä¾¿åˆ©ã‹ãªã¨æ€ã£ã¦ä¸‹è¨˜ã®ã‚ˆã†ãªã‚¯ãƒ©ã‚¹ã‚’書ã„ãŸã€‚ class Tag: """A base class of HTML tag.""" name = None inline = True container = False def __init__(self, *nodes, **attributes): self.nodes = nodes self.attributes = attributes def __str__(self): return self.serialize() def ser
{{#tags}}- {{label}}
{{/tags}}