<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Why I use Smarty: PHP is an ugly templating language</title>
	<atom:link href="http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/</link>
	<description>Confessions of a Technology Junkie</description>
	<lastBuildDate>Sat, 02 Apr 2011 14:16:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Maarten Tibau</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-1006</link>
		<dc:creator>Maarten Tibau</dc:creator>
		<pubDate>Fri, 10 Dec 2010 10:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-1006</guid>
		<description>@Jesse Dhillon

Quote &quot;Did you know that you can use  to echo a variable? That is the same as  .&quot;

When working with the Zend Framework and if you follow the coding conventions, the use of short opening tag of PHP isn&#039;t allowed.

I&#039;ve been working with Smarty for 4 years now.  I love it, but I hate it sometimes as well.  Like some people already said, you should have to look at each project and see which choice is best.

The idea of Smarty is giving people who don&#039;t have PHP skills the ability to change templates and for that it should be used.</description>
		<content:encoded><![CDATA[<p>@Jesse Dhillon</p>
<p>Quote &#8220;Did you know that you can use  to echo a variable? That is the same as  .&#8221;</p>
<p>When working with the Zend Framework and if you follow the coding conventions, the use of short opening tag of PHP isn&#8217;t allowed.</p>
<p>I&#8217;ve been working with Smarty for 4 years now.  I love it, but I hate it sometimes as well.  Like some people already said, you should have to look at each project and see which choice is best.</p>
<p>The idea of Smarty is giving people who don&#8217;t have PHP skills the ability to change templates and for that it should be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Ellsworth</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-1005</link>
		<dc:creator>Paul Ellsworth</dc:creator>
		<pubDate>Fri, 03 Dec 2010 14:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-1005</guid>
		<description>A small clarification...  I don&#039;t code the HTML in PHP, and I do use standard but high speed text replacement logic in smaller HTML sections, which means that technically I am using templating.  But it only takes about four functions, and is so simple I can teach it to a new programmer in less than an hour.</description>
		<content:encoded><![CDATA[<p>A small clarification&#8230;  I don&#8217;t code the HTML in PHP, and I do use standard but high speed text replacement logic in smaller HTML sections, which means that technically I am using templating.  But it only takes about four functions, and is so simple I can teach it to a new programmer in less than an hour.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Ellsworth</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-1004</link>
		<dc:creator>Paul Ellsworth</dc:creator>
		<pubDate>Fri, 03 Dec 2010 14:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-1004</guid>
		<description>I&#039;m not sure that there is a tool out there I&#039;d recommend, and that includes any of the main templating engines.  My reasoning is simple:  the amount of work that goes into making the engines perform has always outweighed the amount of work it takes to learn to break the construction of a good website and page into easily managed programming tasks.  

For example take the typical 3 column &quot;blog, link, and article site&quot; with the following components:  A header bar, a footer bar, a top menu, a left side menu, stacked right side boxes, and a main area where all of the links in the main page place their results.   Make it even more complex by making the top menu a &quot;tab bar menu&quot;.  Now decide to make the whole thing very dynamic and web 2.0 and how about the mobile site, the android version, and the iPhone app...   Oh, and now that my CSS skills are coming up to snuff, I can really....

Do what?  go back and redo all of my templates? perhaps double, triple, or quadruple the number of templates I have to use?

It&#039;s not that I don&#039;t believe in the separation of user interface from business logic from pure programming.  It&#039;s just that I can use nearly pure programming to build easily comprehensible components that output to pure HTML/JS-Ajax/css&#039;d files (which is what the server sends out to the world anyway, and let CSS, etc. take care of the rest.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure that there is a tool out there I&#8217;d recommend, and that includes any of the main templating engines.  My reasoning is simple:  the amount of work that goes into making the engines perform has always outweighed the amount of work it takes to learn to break the construction of a good website and page into easily managed programming tasks.  </p>
<p>For example take the typical 3 column &#8220;blog, link, and article site&#8221; with the following components:  A header bar, a footer bar, a top menu, a left side menu, stacked right side boxes, and a main area where all of the links in the main page place their results.   Make it even more complex by making the top menu a &#8220;tab bar menu&#8221;.  Now decide to make the whole thing very dynamic and web 2.0 and how about the mobile site, the android version, and the iPhone app&#8230;   Oh, and now that my CSS skills are coming up to snuff, I can really&#8230;.</p>
<p>Do what?  go back and redo all of my templates? perhaps double, triple, or quadruple the number of templates I have to use?</p>
<p>It&#8217;s not that I don&#8217;t believe in the separation of user interface from business logic from pure programming.  It&#8217;s just that I can use nearly pure programming to build easily comprehensible components that output to pure HTML/JS-Ajax/css&#8217;d files (which is what the server sends out to the world anyway, and let CSS, etc. take care of the rest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: williamjxj</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-1003</link>
		<dc:creator>williamjxj</dc:creator>
		<pubDate>Thu, 02 Dec 2010 01:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-1003</guid>
		<description>Things depend. smarty just a option. 

Currently developing includes html, css, js, maybe some libraries. the testing and debug is not a easy work. 
using php without template (in dreamweaver) is a total WYSIWYG (that&#039;s why dreamweaver is hot).

the purpose of php is to make developing easier and rapidly. forget the templates and mvc framework, except you use some CMS or open-source framework.

Smarty is only smart on present level template, but not smart on whole web developing at all!</description>
		<content:encoded><![CDATA[<p>Things depend. smarty just a option. </p>
<p>Currently developing includes html, css, js, maybe some libraries. the testing and debug is not a easy work.<br />
using php without template (in dreamweaver) is a total WYSIWYG (that&#8217;s why dreamweaver is hot).</p>
<p>the purpose of php is to make developing easier and rapidly. forget the templates and mvc framework, except you use some CMS or open-source framework.</p>
<p>Smarty is only smart on present level template, but not smart on whole web developing at all!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dek bryon</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-1002</link>
		<dc:creator>dek bryon</dc:creator>
		<pubDate>Mon, 29 Nov 2010 05:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-1002</guid>
		<description>Had to fix a site made with Smarty, my first experience and a bad one - it&#039;s an admirable effort but pointless. They&#039;re years behind MVC and anyway, I think the task is so large a small team will always play catch-up. Version 3 is horrendously buggy and anyway, replacing php tags with their own is only going to lead to a new language (IF it continues), perl verses php and so on. I wouldn&#039;t recommend it to anyone I like.</description>
		<content:encoded><![CDATA[<p>Had to fix a site made with Smarty, my first experience and a bad one &#8211; it&#8217;s an admirable effort but pointless. They&#8217;re years behind MVC and anyway, I think the task is so large a small team will always play catch-up. Version 3 is horrendously buggy and anyway, replacing php tags with their own is only going to lead to a new language (IF it continues), perl verses php and so on. I wouldn&#8217;t recommend it to anyone I like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BeSmart</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-1000</link>
		<dc:creator>BeSmart</dc:creator>
		<pubDate>Wed, 24 Nov 2010 12:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-1000</guid>
		<description>Smarty is the number one choice for templates. I don&#039;t know how many hours - these so called programmers - have spent doing webpages, but I&#039;ve done it for like 10+ years and the ugly php code just makes me vomit.

Smarty is easy, everyone can learn it and I don&#039;t have to type my ass out to output a variable.

{$var}

SHIFT+{}, LEFT ARROW, $var - Isnt this easier to type? THAN:

SHIFT+

 - Gimme a break
 - Gimme a break

Every other template: Gimme a break...

I don&#039;t like to be a robot, so redundant php tags make me going crazy.</description>
		<content:encoded><![CDATA[<p>Smarty is the number one choice for templates. I don&#8217;t know how many hours &#8211; these so called programmers &#8211; have spent doing webpages, but I&#8217;ve done it for like 10+ years and the ugly php code just makes me vomit.</p>
<p>Smarty is easy, everyone can learn it and I don&#8217;t have to type my ass out to output a variable.</p>
<p>{$var}</p>
<p>SHIFT+{}, LEFT ARROW, $var &#8211; Isnt this easier to type? THAN:</p>
<p>SHIFT+</p>
<p> &#8211; Gimme a break<br />
 &#8211; Gimme a break</p>
<p>Every other template: Gimme a break&#8230;</p>
<p>I don&#8217;t like to be a robot, so redundant php tags make me going crazy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-998</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 19 Nov 2010 00:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-998</guid>
		<description>I&#039;ve been having a discussion about Smarty lately also. I told them one thing: Meta-data. You don&#039;t have ANY Meta-Data NOR skins or themes whatsoever.
JSP has _some_ but PHP is _not_ JSP. So unless you plan on going through some trouble to mimic this behavior, you should stick with Smarty.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been having a discussion about Smarty lately also. I told them one thing: Meta-data. You don&#8217;t have ANY Meta-Data NOR skins or themes whatsoever.<br />
JSP has _some_ but PHP is _not_ JSP. So unless you plan on going through some trouble to mimic this behavior, you should stick with Smarty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-997</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Thu, 18 Nov 2010 20:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-997</guid>
		<description>nosmarty site is outdated and innaccurate. its just propaganda. think for yourself.</description>
		<content:encoded><![CDATA[<p>nosmarty site is outdated and innaccurate. its just propaganda. think for yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus Wright</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-690</link>
		<dc:creator>Markus Wright</dc:creator>
		<pubDate>Mon, 12 Jul 2010 21:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-690</guid>
		<description>Actually, the examples on nosmarty are much more extensive than that, and detail smarty&#039;s terrible syntax for variable assignment and function calls.

I recommend using H20 templates or even better, just use Django and you&#039;re better of in every imaginable way.</description>
		<content:encoded><![CDATA[<p>Actually, the examples on nosmarty are much more extensive than that, and detail smarty&#8217;s terrible syntax for variable assignment and function calls.</p>
<p>I recommend using H20 templates or even better, just use Django and you&#8217;re better of in every imaginable way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FettesPS</title>
		<link>http://www.dotevan.com/2009/02/05/why-i-use-smarty-php-is-an-ugly-templating-language/comment-page-1/#comment-659</link>
		<dc:creator>FettesPS</dc:creator>
		<pubDate>Wed, 31 Mar 2010 16:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotevan.com/?p=50#comment-659</guid>
		<description>I agree with your article, I&#039;ve been using Smarty for 3 or 4 years and still love it.  Mixing PHP and HTML makes for some serious ugly code.  

As for  I also find that very ugly, and like the author I always type the full &lt;?php part in the tag because back in my Dreamweaver days I was quite annoyed by people who didn&#039;t (if it&#039;s just &lt;? then Dreamweaver doesn&#039;t recognize it as PHP, and I&#039;m sure other IDEs have this fault too).</description>
		<content:encoded><![CDATA[<p>I agree with your article, I&#8217;ve been using Smarty for 3 or 4 years and still love it.  Mixing PHP and HTML makes for some serious ugly code.  </p>
<p>As for  I also find that very ugly, and like the author I always type the full &lt;?php part in the tag because back in my Dreamweaver days I was quite annoyed by people who didn&#039;t (if it&#039;s just &lt;? then Dreamweaver doesn&#039;t recognize it as PHP, and I&#039;m sure other IDEs have this fault too).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

