reword a paragraph

This commit is contained in:
mohrt
2004-01-23 20:56:41 +00:00
parent e8384fe5d7
commit 542e361fe2

View File

@@ -25,12 +25,16 @@
templates without breaking application logic. templates without breaking application logic.
</para> </para>
<para> <para>
Now for a short word on what Smarty does NOT do. Smarty does not attempt to One design goal of Smarty is the separation of business logic and
completely separate logic from the templates. There is no problem with presentation logic. This means templates can certainly contain logic under
logic in your templates under the condition that this logic is strictly for the condition that it is for presentation only. Things such as including
presentation. A word of advice: keep application logic out of the other templates, altering table row colors, upper-casing a variable,
templates, and presentation logic out of the application. This will most looping over an array of data and displaying it, etc. are all examples of
definately keep things manageable and scalable for the foreseeable future. presentation logic. This does not mean that Smarty forces a separation of
business and presentation logic. Smarty has no knowledge of which is which,
so placing business logic in the template is your own doing. Also, if you
desire NO logic in your templates you certainly can do so by boiling the
content down to text and variables only.
</para> </para>
<para> <para>
One of the unique aspects about Smarty is the template compling. This means One of the unique aspects about Smarty is the template compling. This means