Zope vs Php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jorge Godoy

    #31
    Re: Zope vs Php

    Mike Meyer <mwm@mired.or g> writes:
    [color=blue]
    > Unfortunately, my tools don't - which is another one of the things I
    > like about Cheetah: it doesn't interfere with my X/HTML tools. For
    > instance, I edit attributes by asking the editor to let me edit the
    > current tags attributes. It opens window with a list of valid
    > attributes, along with type information about those attributes. I edit
    > the list, close the window, and it inserts the required attributes,
    > appropriately quoted, into the tag. I couldn't use that for py:*
    > attributes without tweaking the DTD for each language I wanted to
    > edit. Similar problems crop up with the other features that depend on
    > information from the DTD.[/color]

    What DTD do you use to write Python code? ;-)

    I can use my "HTML writing tool" with the XHTML, HTML, etc. DTD specified and
    have it insert the tags for me. The Python namespace allows me to insert
    Python commands and still have valid (X)HTML output (at least tidy is very
    happy with them). After I have the mockup, with Python tags embedded, I send
    the files to the webdesigners and they do their art. :-)

    For one project we are using a lot of CSS and JavaScript.

    But, as you can see with TurboGears, it's possible to do even more with it.

    --
    Jorge Godoy <godoy@ieee.org >

    Comment

    • bruno at modulix

      #32
      Re: Zope vs Php

      Steve wrote:[color=blue]
      > I am going to go the mod_python route.
      >
      > as for why a person would go route one over route 2
      >
      > is that the number of lines of html/output vs python code are usually
      > 10 to 1 and it's much easier to encapsulate the python code than to
      > quote and escape all the html/css/xml
      >
      >
      > <%
      > #python code
      > %>
      > <title> some title</title>
      >
      > and
      >
      > print output(python-code) + "<title> some title</title>".
      >
      > are equivalent.[/color]

      Yes, but this was *not* what I suggested.

      There are a lot of HTML templating languages for Python, some being more
      or less PHP-like (PSP, Cheetah, ...), some being way more
      presentation-oriented (TAL, Kid, ...). I prefer the second category. I
      share your opinion about html in code, but I also dislike code in html...



      --
      bruno desthuilliers
      python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
      p in 'onurb@xiludom. gro'.split('@')])"

      Comment

      • bruno at modulix

        #33
        Re: Zope vs Php

        Steve wrote:[color=blue]
        > I am going to go the mod_python route.
        >
        > as for why a person would go route one over route 2
        >
        > is that the number of lines of html/output vs python code are usually
        > 10 to 1 and it's much easier to encapsulate the python code than to
        > quote and escape all the html/css/xml
        >
        >
        > <%
        > #python code
        > %>
        > <title> some title</title>
        >
        > and
        >
        > print output(python-code) + "<title> some title</title>".
        >
        > are equivalent.[/color]

        Yes, but this was *not* what I suggested.

        There are a lot of HTML templating languages for Python, some being more
        or less PHP-like (PSP, Cheetah, ...), some being way more
        presentation-oriented (TAL, Kid, ...). I prefer the second category. I
        share your opinion about html in code, but I also dislike code in html...



        --
        bruno desthuilliers
        python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
        p in 'onurb@xiludom. gro'.split('@')])"

        Comment

        • bruno at modulix

          #34
          Re: Zope vs Php

          Mike Meyer wrote:[color=blue]
          > Jorge Godoy <godoy@ieee.org > writes:
          >[color=green]
          >>Mike Meyer <mwm@mired.or g> writes:
          >>[/color][/color]
          (snip)[color=blue]
          >
          > While I'm at it - how does KID do for things that aren't HTML?[/color]

          It doesn't. Kid is explicitely for XML/HTML templating.


          --
          bruno desthuilliers
          python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
          p in 'onurb@xiludom. gro'.split('@')])"

          Comment

          • bruno at modulix

            #35
            Re: Zope vs Php

            Mike Meyer wrote:[color=blue]
            > Jorge Godoy <godoy@ieee.org > writes:
            >[color=green]
            >>Mike Meyer <mwm@mired.or g> writes:
            >>[/color][/color]
            (snip)[color=blue]
            >
            > While I'm at it - how does KID do for things that aren't HTML?[/color]

            It doesn't. Kid is explicitely for XML/HTML templating.


            --
            bruno desthuilliers
            python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
            p in 'onurb@xiludom. gro'.split('@')])"

            Comment

            Working...