in layout you need {{pass}} because indentation are not available (you know python need indentation to understand bloc of code). So since you don't have those indentation in html you need to tell web2py where are the bloc of code. So, you need one pass for a given bloc of code (if, for, etc.)
Richard On Wed, Mar 14, 2012 at 3:10 PM, bussiere adrien <bussi...@gmail.com> wrote: > i don't understand the pass ... > I anyone have a better tutorial than the official one. > > Here is my layout.html : > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http ://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http ://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> > <title>Projet Jackpoint</title> > </head> > <css> > body{ > color:#b7d14e; > background-color:#000f00; > margin:4px; > margin-top:0px; > font-family:monospace; > } > a:link{ > color:#94d118; > } > a:visited{ > color:#94a443; > }</css> > > > here is my user.html : > {{extend 'layout.html'}} > <body> > <pre> > __ _ _ _ > \ \ __ _ ___| | ___ __ ___ (_)_ __ | |_ > \ \/ _` |/ __| |/ / '_ \ / _ \| | '_ \| __| > /\_/ / (_| | (__| <| |_) | (_) | | | | | |_ > \___/ \__,_|\___|_|\_\ .__/ \___/|_|_| |_|\__| > |_| > </pre> > <h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2> > <div id="web2py_user_form"> > {{=form}} > {{if request.args(0)=='login':}} > {{if not 'register' in auth.settings.actions_disabled:}} > <br/> > {{pass}} > {{pass}} > {{pass}} > </div> > <a href="../invitation">Vous avez une invitation ? Follow the rabbit > ...</a><br> > <a href="../faq">FAQ</a> > <script language="javascript"><!-- > jQuery("#web2py_user_form input:visible:enabled:first").focus(); > //--></script> > > </body> > > Why does it say to me that there is not enough {{pass}} ? > I have no pass in layout.html and in user html 3 pass. > > And before tryieng to make a layout and put the balise extend layout it > worked fine. > > > regards > Bussiere >