[cse491] Jinja2 html formatting

C. Titus Brown ctb at msu.edu
Mon Sep 21 12:13:51 PDT 2009


On Mon, Sep 21, 2009 at 03:12:37PM -0400, Maitland Marsh wrote:
> Just to be clear, when you say
> 
> """
> the Python code should only extract the form values and then load and
> execute the template, with no string concatenation, print statements, etc.
> (2.5 points)
> """
> 
> does that include logic like picking which font tag to use, upper and
> lower-casing the name, stuff like that?
> I've found that Jinja2 does have filters to do stuff like upper and
> lowercase, and I supposed the font tag choice could just be a 3 part jinja2
> if-block.

Yes, exactly.

--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list