In general, you're better off asking Flask questions in Flask forums, as 
there is no particular relationship between Flask and web2py (other than 
that they are both Python web frameworks).

Flask uses Jinja2 for templates, so I suggest you have a look at the 
relevant section of the Jinja2 documention: 
http://jinja.pocoo.org/docs/dev/templates/.

In short, {% ... %} is for statements (somewhat equivalent to web2py's {{ 
... }}), and {{ ... }} is for expressions to be written into the template 
(equivalent to web2py's {{= ... }}).

Anthony

On Wednesday, June 3, 2015 at 7:46:35 AM UTC-4, Samuel Sowah wrote:
>
> I know this isn't the flask community but it's got some relationship with 
> web2py so I thought I might as well ask it here.
>
> In web2py, I get the usage of the braces in a "view" for writing python 
> code, that explanation is plain, simple, straightforward. I can't seem to 
> find a straight forward answer to the same situation regarding flask.
>
> With flask, there's 
> 1. {%  and %},
> 2. {{ and }}.
>
> What's the difference? I'm having trouble getting the whole idea... and if 
> there's a possible relationship in web2py for the use of both notations 
> that can help me understand, I'd be glad.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to