Differences between revisions 4 and 5
Revision 4 as of 2005-01-11 07:30:17
Size: 1878
Editor: dsl-210-15-250-194
Comment:
Revision 5 as of 2005-05-09 02:03:54
Size: 2137
Editor: gork
Comment: add sample
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:

=== Sample ===

{{{
        <select>
        <!--(for option in optionList)-->
                <option @!if (option[1]) then "selected" else ""!@>
                @!option[0]!@
                </option>
        <!--(end)-->
        </select>
}}}

A framework for WebProgramming.

Masthead

URL

http://www.nullcube.com/software/cubictemp.html

version
0.4
licence
BSD
platforms
All
Python versions
2.2

Deployment Platforms

  • Any

Sample

        <select>
        <!--(for option in optionList)-->
                <option @!if (option[1]) then "selected" else ""!@>
                @!option[0]!@
                </option>
        <!--(end)-->
        </select>

Suitability

CubicTemp should be used in association with a good web framework. It is small and simple enough to be modified on a per-project basis.

A back ported version of CubicTemp is available from my page AshishShrestha. This works with Jython 2.1 This allows it to be used with servlet engines like Tomcat. I think the simplicity of CubicTemp and ease of Jython is a cool combination for web development.

Development Interfaces

Environment Access

Session, Identification and Authentication

Persistence Support

Presentation Support

InTheirOwnWords

CubicTemp is an attempt to make a Python templating system that is simple, powerful and well designed. Cubictemp also has built-in protection against cross-site-scripting attac, a very common class of web application vulnerability.

Comments

CubicTemp is pretty elegant and easy, however I discovered several major drawbacks:

  • block structure is designed to be html comments, but is relying on python-like indentation. Former allows editing in html editors like DreamWeaver and later precludes their usage as they disrupt indentation with mixing tabs and spaces with variable tab length.

  • if-then-else blocks are missing.

-- MikeRovner DateTime(2005-01-05T05:23:17Z)

Actually, Cubictemp has an if-then-else structure built in - you can do if-then-else blocks simply and elegantly by declaring two named blocks, and using the if-then-else structure to decide which to substitute into the rendered page....

-- AldoCortesi

Hosting

CubicTemp (last edited 2014-04-16 03:16:43 by DaleAthanasias)

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