2011/8/23 John Fulton <[email protected]>: > On Tue, Aug 23, 2011 at 9:27 AM, Leandro Severino > <[email protected]> wrote: >> Then, how to declare a empty variable in template ? and how to >> make a SUM operation in this variable ? > > I don't believe the templating system supports that. You can express > the sum of two variables that you passed to a template but you can't > create set the sum of two variables inside a template; i.e. > > You can do this: > > <html>$(x+y)</html> > > You can't do this: > > $z = x+y > <html>$z</html>
You can do it as: $ z = x + y <html>$z</html> Notice the space before z. Without the space it is considered as $(z) = x+y. Anand -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
