Skip to content

Instantly share code, notes, and snippets.

@gideondsouza
Created September 4, 2013 17:35
Show Gist options
  • Save gideondsouza/6440177 to your computer and use it in GitHub Desktop.
Save gideondsouza/6440177 to your computer and use it in GitHub Desktop.
login.tt from the cookbook.pod example
<html>
<head>
<title>Session and log</title>
</head>
<body>
<form action='/login' method='POST'>
User Name : <input type='text' name='user'/>
Password: <input type='password' name='pass' />
<input type='hidden' name='path' value='[% path %]'/>
<input type='submit' value='Login' />
</form>
[% IF failed %]
<p>login failed</p>
[% END %]
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment