Differences between revisions 18 and 20 (spanning 2 versions)
Revision 18 as of 2013-02-04 19:51:20
Size: 2504
Editor: techtonik
Comment: it is still a more generic page about data representation using Python
Revision 20 as of 2013-02-04 19:54:13
Size: 2506
Editor: techtonik
Comment: shorten title
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
== Templating Systems == == Data on the web ==
Line 13: Line 13:
An interesting article about this is [[http://www.perl.com/pub/a/2001/08/21/templating.html|"Choosing a Templating System"]]. Another interesting article about this is [[http://www.perl.com/pub/a/2001/08/21/templating.html|"Choosing a Templating System"]].

Data on the web

There are several approaches to represent data using Python on a web page (see WebProgramming).

Another interesting article about this is "Choosing a Templating System".

Syntax

Different approaches lead to different design decisions. Often it is the principal reason that new template systems get invented:

Examples

Some presentation systems fall neatly into the categories above. Others are less easy to classify but have a closer association to one category than the others.

PythonInWebPage

StructureAnnotation

Hybrids

Programmatic

Notes

Feel free to add more abstract descriptions and more examples to help people decide what they are looking for!

Do you need to use full-fledged python, embedded bits of definitions but no functions -- there is a range of options depending on your problem. Sometimes there's no python in "the output page" -- as in raw documents put thru a filter. Or there may be limited amounts of embedded python -- as in YAPTU and other filters. Or python may be the matrix language, with text embedded within it. Your handler code can be anything from a substituter (using, say, regular expressions to catch things to be altered) to a mini python engine. See 'Python Journal 3(1)' a feature article that draws together several of the options above into a series on the pure-text to pure-python "dimension". See what your options are.

DataRepresentation (last edited 2013-02-04 19:54:13 by techtonik)

Unable to edit the page? See the FrontPage for instructions.