XBHCL: Beschleunigte Generierung von HTLM u. ä.

Moderator: Moderatoren

Antworten
Benutzeravatar
Tom
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 9345
Registriert: Do, 22. Sep 2005 23:11
Wohnort: Berlin
Hat sich bedankt: 100 Mal
Danksagung erhalten: 359 Mal
Kontaktdaten:

XBHCL: Beschleunigte Generierung von HTLM u. ä.

Beitrag von Tom »

Sander Elias hat gerade in Rogers WebBoard angekündigt, daß es eine (neue?) Version des XBHCL-Frameworks gibt. Dieses Tool, das auf das HREF und Xb2.Net zugreift, erlaubt u.a. die beschleunigte Erzeugung von HTLM-Dokumenten, sofern das z.B. innerhalb eines Web-Frontends erforderlich sein sollte. Dafür führt es eine eigene Syntax ein. Interessante Samples unter "Demo":

http://www.xbhcl.com
Herzlich,
Tom
Benutzeravatar
Tom
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 9345
Registriert: Do, 22. Sep 2005 23:11
Wohnort: Berlin
Hat sich bedankt: 100 Mal
Danksagung erhalten: 359 Mal
Kontaktdaten:

Beitrag von Tom »

Sander hat in Rogers Webboard noch ein paar Sachen klargestellt; wenn ich nach dem XUG-Treffen noch dazu komme, übersetze ich es:

My German isn't that good, but I think I need to clarify some things.
xbHCL is a stand-alone xbase++ library, you don't need anything else to
get you going. it is used to make generation off HTML much simpler to the
xbase++ developer. we took care off a lot off the oddities off handling
and generating html.

Of coarse HTML is best used in a webserver, hence the link to Xb2.NET.
Also it works fine in conjunction with WAA. it is even possible to use the
same code for waa or xb2.net. you don't have to use it on a web server
only, you can also use it to make HTML files directly to memory or disk.
Futher, it's possible to let it generate to output to PDF or postscript.

We did not create our own syntax, but used the standard HTML4.01.
All html tags are present in xbHCL, we just got rid off the brackets, and
the need off closing up stuff. for example if one wants to create a table
in html without xbHCL you have to do something like:
cHTML += ' <table border="1">'
cHTML += ' <tr>'
cHTML += ' <th>#</th>'
cHTML += ' <th>what?</th>'
cHTML += ' </tr>'
for x :=1 to len(aSamp)
cHTML += ' <tr>'
cHTML += ' <td>'
cHTML += myalltrim(str(aSamp[x,1]))
cHTML += ' </td>'
cHTML += ' <td>'
cHTML += aSamp[x,2]
cHTML += ' </td>'
cHTML += ' </tr>'
next
cHTML += ' </table>'

with xbHCL this becomes:
local aSamp := {{1,"xbHCL"},{2,"Second to none"}}
local x := 0
local cHTML := ''
table border=1
td
th ? '#'
th ? 'what?'
for x :=1 to len(aSamp)
tr
td ? (aSamp[x,1])
td ? (aSamp[x,2])
next
endtable //this one is optional too!
HCL save to cHTML

Of coarse it might well be that this was what your German text was
saying all along, but I just wanted to prevent misunderstandings :)

Regards
Sander Elias
Herzlich,
Tom
Antworten