DeCaf:Net the poor mans solution to the world of the web.
The Verbs main goal is to give the HQL a real language.
Some Verbs are internal to the HQL Kernel, whereas the more powerful Verbs are external DLLs that brings real action to the HQL language. We selected the DLL option even if many Windows user dislikes the DLL’s. Why? Simple reason, it gives the developers a change to expand the language without having to re-compile the core code. If you can create DLL’s with you coding tools you can add Verbs to the HQL language. Some Verbs may be only useful to you, whereas other may be useful to everyone that is using the HQL Kernel.
One Verb can be replaced with another. Let’s say you want the Verb to not only produce HTML code but some scripting too, well all you need to do is create a new DLL.
Internal Verbs:
|
ECHO |
Pass information to the html file |
|
$xxxxx |
$MyFile = {Home}myfile.txt;
Echo Include File=$MyFile; |
|
If |
If Number Sign Number Then;
Sign as =, <, <=, <>, >=, >
$Count = 3;
$Index = 1;
If $Index < $Count Then;
. Echo = $Index;
End; |
|
While |
While Number Sign Number Do;
Sign as =, <, <=, <>, >=, >
$Count = 3;
$Index = 1;
While $Index < $Count Do;
. Echo = $Index;
End; |
|
{ TAG_NAME } |
Tags to be replaced |
|
{ HOME } |
Folder path configured in the Setup |
|
{ ROOT } |
Folder path to where the application is located |
|
{ TIME } |
Insert computer time as "4:43:00 PM" |
|
{ DATE } |
Insert computer date as "10/27/2001" |
|
{ DATETIME } |
Insert computer date and time as "10/27/2001 4:43:00 PM" |
|
{ LONGDATE } |
Insert computer date as "Saturday, October 27, 2001" |
|
|
|
Robot tips!
|
[Question] How can I use the Internal Verb?
[Answer] In the following example you can see how we have use the Internal Verbs for date stamping a web page.
<html>
<head>
<title>Date stamp Web site</title>
</head>
<body bgcolor="#C1F5F5">
<#hql
$LF = <br>;
Echo Updated: + { DATETIME } + $LF;
Echo $LF;
#>
</body>
</html>
|
|
|
|