I think just about anyone will agree that the PEAR template system is lacking and sluggish at best.<br>
<br>
I favor the Smarty template system. It has always worked very
well for me in the past and it allows you to choose the complexity of
the tempaltes you write as it can handle some PHP in the template
itself. The built in caching system makes it extremely fast as
well.<br><br><div><span class="gmail_quote">On 6/24/05, <b class="gmail_sendername">Dave J. Hala Jr.</b> <<a href="mailto:dave@58ghz.net">dave@58ghz.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
That's a good point. I'll buy that.<br><br>However, if keep you it simple, you won't have that vulnerability. I<br>think that a "template" like the one below is fairly safe. The Java<br>script is couple of tools that format date/ssn & phone numbers on the
<br>fly.<br><br><br><br><html><br><head><br><title> <? echo $title ?></title><br><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br> <meta http-equiv="Pragma" content="no-cache">
<br> <script language="JavaScript" src="/java/ssn-date-phn.js"<br>type="text/javascript" ></script><br> <style
type="text/css">@import "../css/main.css";</style><br></head><br><body bgcolor="#ffffff" ><br><? echo $page ?><br></body><br></html><br><br>On Fri, 2005-06-24 at 08:25, Tony Bibbs wrote:
<br>> This best sums up why PHP isn't such a good template engine:<br>><br>> <a href="http://www.akbkhome.com/blog.php/View/80/PHP+as+a+template+engine%2C+or+recipe+for+disaster%3F.html">http://www.akbkhome.com/blog.php/View/80/PHP+as+a+template+engine%2C+or+recipe+for+disaster%3F.html
</a><br>><br>> In short, you have to save developers from themeselves sometimes.<br>><br>> --Tony<br>><br>> Dave J. Hala Jr. wrote:<br>> > I was thinking about what Tim said the other day regarding "templating
<br>> > systems". I think the main point was: how is inserting a <? echo<br>> > $content ?> tag into an html document really any differant than if you<br>> > just inserted some if/then logic etc.
<br>> ><br>> > I agree with Tim, its more or less the same thing. For me, the problem<br>> > that I was trying to solve two-fold:<br>> ><br>> > 1. Seperate the dynamically generated content from the static content,
<br>> > so that an end user (or graphic designer) could edit the html without<br>> > mucking around in the php code.<br>> > 2. Make it user to make changes to the CSS include files, thereby making<br>> > it simple to effect system wide cosmetic changes in the both the html
<br>> > and the dynamically generated content.<br>> ><br>> > Tim did you have something else in mind?<br>> ><br>> > :) Dave<br>> ><br>> ><br>> ><br>> ><br>> _______________________________________________
<br>> ciapug mailing list<br>> <a href="mailto:ciapug@cialug.org">ciapug@cialug.org</a><br>> <a href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a><br>--<br><br>Open Source Information Systems (OSIS)
<br>Dave J. Hala Jr. <<a href="mailto:dave@osis.us">dave@osis.us</a>><br>641.485.1606<br><br>_______________________________________________<br>ciapug mailing list<br><a href="mailto:ciapug@cialug.org">ciapug@cialug.org
</a><br><a href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a><br></blockquote></div><br>