Most Popular

.ptl — File

<!DOCTYPE html> <html> <head> <title>Welcome Page</title> </head> <body> <!-- Standard HTML is static --> <h1>Hello, <span tal:replace="view/user_name">User</span>!</h1>

<p tal:condition="not: view/is_logged_in"> <a href="/login">Please log in</a> </p> .ptl file

<!-- TAL (Template Attribute Language) attributes --> <p tal:condition="view/is_logged_in"> Your last login was: <span tal:replace="view/last_login">Never</span> </p> !-- Standard HTML is static --&gt

.ptl file .ptl file .ptl file .ptl file .ptl file

<!DOCTYPE html> <html> <head> <title>Welcome Page</title> </head> <body> <!-- Standard HTML is static --> <h1>Hello, <span tal:replace="view/user_name">User</span>!</h1>

<p tal:condition="not: view/is_logged_in"> <a href="/login">Please log in</a> </p>

<!-- TAL (Template Attribute Language) attributes --> <p tal:condition="view/is_logged_in"> Your last login was: <span tal:replace="view/last_login">Never</span> </p>