Search Optimization
  Home arrow Search Optimization arrow Working 'Smarter' with Templates
IBM developerWorks
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SEARCH OPTIMIZATION

Working 'Smarter' with Templates
By: Bill Sterzenbach
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2004-08-23

    Table of Contents:
  • Working 'Smarter' with Templates
  • Selecting a Template Engine
  • A Typical Dynamic Web Page without Templates
  • Putting Smarty to Work - A Dynamic Template-driven Web Page
  • Places Where Smarty Shines
  • Common Mistakes with Smarty

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Working 'Smarter' with Templates


    (Page 1 of 6 )

    Managing hundreds or even thousands of individual pieces of web content is difficult in itself, but when you add the necessity to format all of this content and keep it light on its feet for site redesigns, make it accessible for searching, and loosely coupled for restructuring, the task becomes all but impossible. It is only through a template system that we begin to feel the content choke hold loosen ever so slightly.

    How Templates Work

    Template systems allow us to separate the application and presentation aspects of our websites. When many developers hear the word “template” they imagine a set of rigid, dry wire frames that are designed to steal their creativity and mute their expressive ability. I fully understand this perspective as I have seen great template systems fail by being deployed in this way. The good news is that when templates are structured with some imagination, they can offer the desperately needed structure and consistency without hamstringing your design and development process.

    Most template-powered web pages have two basic parts – the php script that the visitor calls with their browser, and the html page that the php script loads and displays. The programmer sets up the code to populate the necessary variables, structures, recordsets, etc. in the php script, and the designer simply consumes them using special variable “placeholders” in the html template file. This means that the designer needs no coding skills and the coder needs no designing skills.

    This works out nicely, as this seems to be the case in many of the development environments I have seen. I was recently involved in a website build where the programmers of the site were onsite while the designers were a time zone away. The amazing thing is that all communications were handled with instant messaging and email. Everyone got to focus on what they did best, and there was very little overlap between programming and design. This exemplifies the power of the template engine. Using templates simply makes sense, but with so many template systems out there, how do you know which is best?

    More Search Optimization Articles
    More By Bill Sterzenbach


     

    SEARCH OPTIMIZATION ARTICLES

    - Meta Elements: A Field Guide
    - Optimize This Page Title
    - What to Consider When Hiring an SEO
    - Raising Your Visibility with LinkedIn
    - Optimize Your LinkedIn Profile
    - Basic SEO: Tricks and Tips
    - Navigating Your Way into Your Visitors` Hear...
    - Creating SEO-Friendly Content
    - Network Solutions: Unethical SEO
    - Basic SEO: What Search Engines Hate
    - Basic SEO: What Search Engines Love
    - I, Robots.txt
    - Same Game, Different Name
    - Use SEO to Get Your New Site Off to a Good S...
    - Basic SEO Troubleshooting






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway