Re: Passing variable to included template?

Roger Burton West <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On Thu, Jul 20, 2006 at 11:26:28PM +0200, Bas A. Schulte wrote:

>H::T::Set is doing what I want just fine; I dropped it in my existing  
>code, did a s/HTML::Template/HTML::Template::Set/g et voila.

That was a primary consideration when I wrote it. (Assuming you're using
mine and not the other module of the same name.)

>I don't quite get the philosophical issues that were also mentioned  
>in that thread in my usage scenario; I'm quite keen on separating  
>business logic from presentation but I feel what I wanted *is* a  
>presentation issue: I wouldn't want the code to have to know about  
>mediocre thing such as a "nice" name for a page.

I'm with Dmitri on this - it's a small annoyance in an otherwise very
useful module. For me, H::T hits just the right spot between requiring
the web dev to be a programmer (the way Template::Toolkit seems to) and
a basic regexp search/replace.

Roger

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.