Web design and development: graphics: web: templates
This article describes how Dreamweaver implements templates. Technically, to use Dreamweaver templates, you don't need to know any of the information given in this article; but it is handy to know something about what's going on under the hood in case you need to troubleshoot a Dreamweaver template based document.
Templates are a tool that is used in many computer applications including Microsoft Word, AutoCAD, and other office automation and design products. Templates are useful when you have a group of documents that share many similar design features. You implement the common features one time in the template, and then just customize the template with the individual features of each document.
Templates are Used Only at Design Time
It is important to understand that are totally a design time construct. Only two things separate a Dreamweaver template from any other HTML document:
1. Dreamweaver template documents have a ".dwt" extension.
2. Dreamweaver templates contain specially defined HTML comments that define the editable and non editable area of the template.
When you create an "instance" document that is based on a Dreamweaver template and store it on a web server, the web server is completely unaware that the document was based on a template. It treats the document the same as any other HTML document, and ignores the template comments in the document the same as it would ignore any other comments in an HTML document.
Similarly, a web browser would be completely unaware that a document was based on a Dreamweaver template, and would also ignore the template comments the same as it would ignore any other comments in an HTML document.
Tag Syntax
Dreamweaver has two sets of tags:
* Template Tags are used in template files (files that have suffix .dwt).
* Instance Tags are used in the "instance" documents you create that are based on a template file (files that typically have a suffix .htm or .html).
Dreamweaver defines about thirty different template tags, but all of them have the following syntax:
where TEMPLATE_TAG_NAME and the parameters are replaced with an actual template tag name and actual parameter names. For example:
In the above example, the template tag is a TemplateBeginEditable tag named "Region 1".
The syntax of instance tags is quite similar:
Tag Pairs
Many template tags are paired, having an opening and a closing tag. For example, the "TemplateBeginEditable" tag described above always starts an editable region that is ended with a "TemplateEndEditable". The two tags come as a pair, defined as follows:
-- HTML Code goes here --- How Dreamweaver uses Template Tags
One of the simplest and most important things that Dreamweaver does with Template/Instance tags is to define what regions of an instance document (document created based on a template document) can be edited. BUT BEWARE . . . If you use Dreamweaver to open a template based document in CODE VIEW, you can edit any part of the document in any way you please -- but this is generally not a good thing to do. In Dreamweaver document design view, Dreamweaver respects the instance tags that are included in a document; for example, it will only allow you to edit areas of the document that begin with an "InstanceBeginEditable" (or similar type) tag.
When you have finished editing your web page, the Dreamweaver Instance Tags will remain in it, but as previously stated, these tags are ignored by your Web Server and your Browser.
Finally, if you update a template in Dreamweaver, all of the documents based on the template will be updated too.
Conclusion
Dreamweaver templates work by using specially defined HTML comment tags to mark regions of Dreamweaver template documents and instance documents. You should recognize Dreamweaver template and instance tags, and understand what they do, but you should only edit them in Dreamweaver Design View, not in Code View. For more information on actually using Dreamweaver templates, see my upcoming article "Dreamweaver Tip: Build Better Websites Faster with Templates".
Relationships: dating sites and servises for singles
Online Society: The Next Generation.
Back in the prehistoric days of the online world, sluggish dinosaur bulletin board services (BBS) walked the earth. The few fanatics who were online at this time quickly discovered that you could meet other people with similar interests on the BBS – which is how internet dating was born.
Flash forward to now. Hundreds of millions of people with a wide variety of interests and tastes are online, visiting tens of millions of websites. Many people right now who don't let a day pass without checking in with Online Services: email, bulletin boards, IRC-style chat, or their online Dating Message Services. And the younger the person, the more likely they are oriented toward online services.
So where is it all going?
Bulletin Board and Static Services
Bulletin boards are the oldest and simplest forms of online society, and they're still going strong. Judging by what my teenage son does all day every day, they probably will continue as the backbone of Internet society for a long time yet.
But they are the big brothers of other static online communication, with large and loyal communities built up around them. Another major form of static online communication is the profile, used extensively by online dating services. The profile is your face, your best way of showing others who and what you are.
One last new development is the integration of the bulletin board community with the newer technology of the wiki. Though it started with Wikipedia, new little wikis based on the free backbone are springing up everywhere. And slowly, the wiki is developing into not just a way to look stuff up, but a way to find guidance and experts on just about anything you're interested in.