zTML Review

Date Submitted: October 19 2005 11:04 am
TML is a new type of CMS
(Content Management System). Unlike most popular CMS currently
available, where the systems have already pre-configured to perform the
assigned tasks; that is, to get what you want all you need to do is
point and click. Although this is a desirable feature, there is not
much for you need to know to get the desired output. However, if you
have a unique requirement, it might not be easily fulfilled.

TML
attempts to address that shortcoming by introducing a new way of
constructing web pages - using scripts to manipulate the contents. To
lessen the complexity of yet another programming language, the scripts
used will be few but yet will provide enough power to create the most
popular web page layout.

TML generates document by using
template records embedded with directives. These directives will call
on the appropriated functions where contents may be retrieved from
MySQL database. The contents can then be placed anywhere thereafter in
the template records by using TML keywords or user defined keywords to
produce the final document for the browser to display; keywords are
simply strings enclosed in a pair of curly braces {string}. You can
omit directives or keywords in the template records, this means that
you simply want to display static pages from the database.

The
following is a list of core directives: add, set, dump, echo, edit,
exec, get, put, split, tpl, switch, sub, udf, and use. New directives
can be added by implementing add-on modules. The following add-on
directives have been added: calendar, guestbook, and rss.

For examples:

Code:

<html><head><title>My Pagetitle>head>
<body>
<h2>My Pageh2>
body>html>



will output the document as is.

Code:

add: title=My Page
<html><head><title>{title}title>head>
<body>
<h2>{title}h2>
{date}
body>html>



will display a similar page but the current date will also be added.

If you've saved the example #2 with a name 'mypage' using the template:

Code:

use: mypage



Will display a page that will be exactly the same as example #2.

Add-on
directive can be use as a stand-alone function in which a complete page
may be generated by simply calling the function. For example, calling
the calendar module (type=cal) will display a calendar for the current
date.

As you can see, TML is simply given you the tools where
you can use to construct the web pages. However, it has provided some
degree of security by allowing only authorized users to perform
sensitive functions. For example, admin can edit all the documents in
the database but registered users can only edit their own, whereas
GUEST may enter entries in the guestbook, but will not allow changing
them. So if you're one of those do-it-yourselfers, you may want to give
TML a try. Also, since if you want to do it right, you have to do it
yourself, TML will help to facilitate that process but will not
restrict you to do it in only certain ways.

Post A Comment

Name:
Comment:
Human Verifier:
(enter the 4 blue numbers you see above)
 
Error! Invalid human verify code
Thank you for your comment. After we have reviewed your comment (to make sure it is not spam) it will be posted below.

veery-contrast