I am getting started with HTML::Template and am looking for some advice on the
best way to handle this.
I want my home page to have a login form (username and password) if someone is
not logged in, or a message "logged in as joe smith" and a logout link if they
are logged in.
What would be the cleanest way (in the MVC sense) to do this with H::T? I can
have something like:
<tmpl_if name=loginame>
Logged in as <tmpl_var name=loginname><br>
<a href='/logout'>Logout</a>
<tmpl_else>
<form action='/login'>
<input type=text name=login>
<input type=password name=password>
</form>
</tmpl_if>
But this feels like putting the control out in the viewer to me. Is there a
better way?
Thanks,
--Mike Carlton
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users