And note, {{=some_expression}} only works when the "=" comes immediately
after the "{{". It is a shortcut for:
{{response.write(some_expression)}}
Also, note that "print" will have no effect on the generated HTML. Instead,
you must write to the response.body (which is what response.write does).
good catch. I was writing javascript right now hehehehehe
On Friday, February 26, 2016 at 8:41:38 PM UTC+1, Marty Jones wrote:
>
> Thank you. That works, although using "for" rather than "foreach".
>
> On Friday, February 26, 2016 at 1:35:10 PM UTC-6, Niphlod wrote:
>>
>> the correct syntax would
Thank you. That works, although using "for" rather than "foreach".
On Friday, February 26, 2016 at 1:35:10 PM UTC-6, Niphlod wrote:
>
> the correct syntax would be
>
> {{foreach element in elements:}}
> {{=each}}
> {{pass}}
>
>
> please read the book (especially the part about views (
> http:/
the correct syntax would be
{{foreach element in elements:}}
{{=each}}
{{pass}}
please read the book (especially the part about views
(http://web2py.com/books/default/chapter/29/05/the-views))
On Friday, February 26, 2016 at 7:49:07 PM UTC+1, Marty Jones wrote:
>
> I'm just getting started
4 matches
Mail list logo