generating web-pages with nnCron

nnCron and nnCron LITE discussion

generating web-pages with nnCron

Postby alexanjo » Mon, 12 Dec 2005, 21:55

I want to publish an html time-table of all the tasks in a given nnCron .tab file. Are there any pre-existing nnCron tools to address this application?

Otherwise, I imagine parsing all the tasks' TIME arguements in the .tab file using READ-LINE in a loop to get the start-times and converting this into arguments acceptable to html's TABLE command.

I found (http://www.tek-tips.com/viewthread.cfm?qid=2325) the following Forth code addressing the generation of an HTML table, but I do not yet understand how this could be done with nnCron:

VARIABLE ITEMDIST
0 ITEMDIST !

: <IS> \ Item Start
ITEMDIST @ 0= IF ." <TR>" THEN ." <TD>" 1 ITEMDIST +! ;

: <IE> \ Item End
." </TD>" ITEMDIST @ 3 = IF ." </TR>" CR 0 ITEMDIST ! THEN ;

: <IF> \ Item Finish
BEGIN ITEMDIST @ 0 > WHILE <IS> ." " <IE> REPEAT ;

<$ <HTML>
<TITLE>List of States</TITLE>
</HEAD>
<BODY>
<TABLE WIDTH=100%> $>
CR <IS> <$ Oregon $> <IE>
CR <IS> <$ California $> <IE>
CR <IS> <$ Washington $> <IE>
CR <IS> <$ Florida $> <IE>
CR <IS> <$ Texas $> <IE>
<IF> <$ </TABLE>

</BODY>
</HTML>
$>
alexanjo
 
Posts: 19
Joined: Tue, 22 Nov 2005, 01:57

Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 1 guest