Opentopia Directory Encyclopedia Tools

Web template

Encyclopedia : W : WE : WEB : Web template


A web template is a tool used to separate content from presentation on the web design, and to the massive production of web pages.

The process: puting information from database, and "presentation specifications" from web template, into the template engine, to produce web pages.
Enlarge
The process: puting information from database, and "presentation specifications" from web template, into the template engine, to produce web pages.

Content on websites needs updating and standardization. A news website, for example, needs daily updating and each updated news item will be contextualized by a standard layout and standard page-location. A strategy to automate this standardization is:

  1. conceive the website with a template engine (template processor);
  2. specify the standards through a web templates;
  3. specify and update content on a database;
  4. incorporate each item of updated content, in a standard format, into the web template with a template engine
are a good examples: the wiki engine  is the template engine, and a specfic wiki template (the web template) is used into a set of articles (the content).

Basic concepts

Kinds of web templates

There are many kinds of web templates: from simple "substitute templates" (masks), where the single-place-variables are substituted by a web designer's content, to complex template schemas based on XSLT. Simple templates were important historically, on the first server-side includes to do uniform headers and footers on the web pages, and to the first web designers, on your html editors. Complex templates play an important role in Content Management Systems (CMS) and Web Publishing in general. They make possible a standardized layout (page arranging, colors, positions, etc.) for different contents while using the same basic layout.

Web templates can be seen from many perspectives:

From the "moment of the substitution process" and server perspective:

Static (outside server) template generation process.
Enlarge
Static (outside server) template generation process.

Server-side template generation process.
Enlarge
Server-side template generation process.

Client-side template generation process.
Enlarge
Client-side template generation process.

From the template engine parsing algorithm perspective (template language perspective):

From the web designers perspective,
From the web designers/web-programmers relationship perspective (design/logic separation):

History

HTTP protocol has been in use by the Web since 1990, HTML, as standard, since 1996. The web browsers explosion started with 1993's Mosaic, not only for HTTP/HTML navigations, but also Gopher, FTP/TXT, and leading with the all diversity of that times.

Web Templates, as "web designers necessity", started with the HTML and web browsers popularization. The CGI (for dynamic page generation) was stable in the 1993's, but the main "necessity" in this first times of the web, was for static pages production. Many independent softwares and HTML edictors adoted a kind of static web template.

Perhaps the first rudimentar server-side web templates was on tipical Unix web servers, for AWK (plugged on CGI) report generator.

Many "active" languages (PHP, CFM, ASP, "Active Perl", etc.) working on (CGI) web servers, as a interpreted language, was adopted as a (general propose) complex template languages.

With the growing of on-line and e-commerce systems, and popularization of web portals (with your CMS), the use of server-side web templates growed and domined the "web template scenery"; but now with the good separation principles enforcing iterable templates and sub-languages.

The hi diversity of "template languages" (as a kind of "sub-language" of the CMS or the server-side programming languages), pointed the needs for a "temaplate standard language". The matureness of XSLT and standarization of XQuery, promises, for near future, a kind of convergence.

Template languages

The sintax to express variables, blocks, substitution rules, or logic, in a web template, is formalised by a template language.

Languages can be defined in a standard or in a "exclusive" context:

Template systems

Software packages and commercial solutions can be organised in "template systems".

Server-side web template languages

Public packages Commercial solutions

Static web template editors

Web template on this context can viewed as a ready-made web design, used to mass-produce "cookie cutter" websites for rapid deployment.

Usually a "simple template" will include most of the source files necessary for further customizing the template using most modern WYSIWYG editors such as Macromedia Dreamweaver, BlueFish, Amaya or FrontPage, or in plain text editors such as Notepad or VIM.

On Macromedia Dreamweaver the item may also include a graphical template created in Adobe Photoshop or Macromedia Fireworks MX making it easy to edit or customise graphics and images.

A FrontPage web template is one used only with Microsoft's FrontPage software. One of the more unique features of FrontPage is that it has built in support for automated and easy to use web templates. The main distinction between these templates and other universal html templates is that FrontPage templates include an automatic navigation system that creates animated buttons for pages that have been added by the user, and creates an advanced multi-level navigation system on the fly using the buttons and the structure of the web site. FrontPage templates also commonly include FrontPage themes in place of CSS styles.

A Flash web template uses Macromedia Flash to create visually appealing sites. Flash sites make use of visual effects employed by Flash. Flash is also used for many website intros.

Template reuse and template repositories

We can "recycle" web templates.

Web templates are sometimes free, and easily made by an individual domestically. However specialized web templates are sometimes sold online. While there are numerous commercial sites that offer web templates, there are also free and "open-source" sources.

See also

External Links

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: