Differences between revisions 5 and 6
Revision 5 as of 2005-05-09 02:03:54
Size: 2137
Editor: gork
Comment: add sample
Revision 6 as of 2008-04-18 01:37:19
Size: 1419
Editor: eth7219
Comment: Update URL, comments for 0.4 no longer relevant to 2.0, correct description.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
A framework for WebProgramming. A small, elegant templating engine.
Line 5: Line 5:
   URL:: http://www.nullcube.com/software/cubictemp.html
   version:: 0.4
   URL:: http://dev.nullcube.com
   version:: 2.0
Line 9: Line 9:
   Python versions:: 2.2    Python versions:: 2.5
Line 49: Line 49:
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

A small, elegant templating engine.

Masthead

URL

http://dev.nullcube.com

version
2.0
licence
BSD
platforms
All
Python versions
2.5

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

Hosting

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

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