tags

A toolkit to create HTML code with Python
Download

tags Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Patrick Sabin
  • Publisher web site:
  • http://pypi.python.org/pypi/fen

tags Tags


tags Description

A toolkit to create HTML code with Python tags is a Python module that allows you to generate HTML code by programming Python. For every Tag type there is a corresponding class, for every tag an object. This way you can program HTML code by programmatically coding in python. The advantage of this style is that you can easily structure and reuse your HTML code, something that pure HTML is missing. For example, you can create a widget and use it at many different places, or create a template and plug some other html code in. Tags takes care of only creating valid html code.Example Code: from tags import * head = Head().append(Title().append(Text("Page Title"))) body = Body().append(P().append(Text("Page Content"))) root = Doctype() root = Doctype().append(Html().append(head).append(body))This project is still in development. There is enough code to play around, but some tags are missing. Requirements: · Python


tags Related Software