home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ppwi2284.zip / tryme.it < prev    next >
Text File  |  2001-03-30  |  7KB  |  146 lines

  1. ;----------------------------------------------------------------------------
  2. ;
  3. ;    MODULE NAME:   TRYME.IT
  4. ;
  5. ;        $Author:   USER "Dennis"  $
  6. ;      $Revision:   1.0  $
  7. ;          $Date:   30 Mar 2001 18:05:38  $
  8. ;       $Logfile:   C:/DBAREIS/Projects.PVCS/MultiOs/PPWIZARD/tryme.it.pvcs  $
  9. ;
  10. ;    DESCRIPTION:   This input file is packaged with PPWIZARD to allow it
  11. ;                   to be used as a simple test by the person doing the
  12. ;                   install.
  13. ;
  14. ;                   To test the install on OS/2, execute the command (note
  15. ;                   rename "ppwizard.rex" to "ppwizard.cmd" first!!!):
  16. ;
  17. ;                      ppwizard.cmd tryme.it
  18. ;
  19. ;                   To test the install on other operating systems (PPWIZARD
  20. ;                   executes under REGINA), execute the command:
  21. ;
  22. ;                       (1) rexx   ppwizard.rex tryme.it     OR
  23. ;                       (2) regina ppwizard.rex tryme.it
  24. ;
  25. ;                   This should create "tryme.htm", view it in your
  26. ;                   browser if you wish.
  27. ;
  28. ;
  29. ;    You might notice that by DEFAULT ppwizard comment lines begin with
  30. ;    ";".  You might also notice that the table is indented to make it easier
  31. ;    to read, by default PPWIZARD will remove this indenting when generating
  32. ;    the html.
  33. ;
  34. ;    So basically you can comment as much as you like, indent as much as you
  35. ;    like and not worry about the download time or the fact that you might be
  36. ;    making it very easy for someone to examine the generated html.
  37. ;----------------------------------------------------------------------------
  38. #require  99.120
  39.  
  40.  
  41. ;----------------------------------------------------------------------------
  42. ;--- The definitions below are normally in their own header files -----------
  43. ;----------------------------------------------------------------------------
  44.  
  45. ;--- Define some "constants" that are used on many pages --------------------
  46. #define   MyEmailAddress         dbareis@labyrinth.net.au
  47. #define   MyHomeDirectory        http://www.labyrinth.net.au/~dbareis/
  48. #define   PpwizardDocoDirectory  <$MyHomeDirectory>ppwizard/
  49. #define   PPwizardWebAddress     <$MyHomeDirectory>ppwizard.htm
  50.  
  51. ;--- Define a "STYLE" of text (who says you need style sheet support?) ------
  52. #define   Red                    <FONT COLOR=RED>{$Text}</FONT>
  53.  
  54. ;--- Get some environmental type information --------------------------------
  55. #evaluate DateTime               @date('WeekDay') || ' ' || date('Month') || ' ' || substr(date('Sorted'), 7, 2) || ' ' || left(date('Sorted'), 4) || ' at ' || time('Civil')@
  56. #evaluate ShortNameHtml          "_filespec('name', '<?OutputFile>')"
  57. #evaluate ShortNameHtmlLowerCase "ToLowerCase('<$ShortNameHtml>')"
  58.  
  59. ;--- To include definitions like the above you put all the definitions in
  60. ;--- one or more files (called header files) and then use a command similar
  61. ;--- to:
  62. ;---        #include "header.ih"
  63.  
  64. ;----------------------------------------------------------------------------
  65. ;--- The definitions above are normally in their own header files -----------
  66. ;----------------------------------------------------------------------------
  67.  
  68.  
  69. ;--- Start HTML (Header) ----------------------------------------------------
  70. <HTML><HEAD>
  71.       <TITLE>TRYME.IT - VERY SIMPLE TEST PAGE</TITLE>
  72. </HEAD>
  73. <BODY>
  74. <CENTER><H1>TRYME.IT<BR>VERY SIMPLE TEST PAGE</H1></CENTER>
  75.  
  76.  
  77. ;--- Paragraph 1 ------------------------------------------------------------
  78. <P>This html page was created at <$DateTime> by ppwizard as a simple test of
  79. the installed code and so as to provide a simple example to get you started,
  80. the source code is named "<?InputFile>".
  81. For a simple example of macro replacement, my email address
  82. is "<$MyEmailAddress>".
  83.  
  84.  
  85. ;--- Paragraph 2 ------------------------------------------------------------
  86. <P>I will display the email address again but in the style "red" to
  87. demonstrate how a parameter is passed. My email address is
  88. "<$RED Text='<$MyEmailAddress>'>".
  89.  
  90.  
  91. ;--- Paragraph 3 ------------------------------------------------------------
  92. <P>The PPWIZARD documentation provides many larger examples that you could
  93. cut and paste into a file and try yourself.
  94.  
  95.  
  96. ;--- Can we show any examples? ----------------------------------------------
  97. #if  FindFile("htmlpre.ih") <> ''
  98.    ;--- Include "PRE" example support ---------------------------------------
  99.    #include "htmlpre.ih"                ;;PPWIZARD addon from download page
  100.  
  101.    ;--- Lets do some (not all) example autotagging (for demo purposes) ------
  102.    #AutoTag "<?xHASH>include"  ^<A HREF="<$PpwizardDocoDirectory>hashinclude.htm">{$AT}</A>^
  103.    #AutoTag "<?xHASH>define"   ^<A HREF="<$PpwizardDocoDirectory>hashdefine.htm">{$AT}</A>^
  104.    #AutoTag "<?xHASH>evaluate" ^<A HREF="<$PpwizardDocoDirectory>hashevaluate.htm">{$AT}</A>^
  105.    #AutoTag "<?xHASH>if "      ^<A HREF="<$PpwizardDocoDirectory>hashif.htm">{$AT}</A> ^
  106.    #AutoTag "<?xHASH>ifndef"   ^<A HREF="<$PpwizardDocoDirectory>hashifndef.htm">{$AT}</A>^
  107.    #AutoTag "<?xHASH>elseif"   ^<A HREF="<$PpwizardDocoDirectory>hashelseif.htm">{$AT}</A>^
  108.    #AutoTag "<?xHASH>endif"    ^<A HREF="<$PpwizardDocoDirectory>hashendif.htm">{$AT}</A>^
  109.  
  110.    ;--- Show a small inline example -----------------------------------------
  111.    <P>This is an example on inline inclusion of code (note that the html comes
  112.    out OK and the automatic hypertext links that were created):
  113.    <$Example STATE="REMEMBER" INDENT=8>
  114.    <P>The machine used to compile this header file does
  115.    #if GetEnv('VACPP_SHARED') = ''
  116.        not
  117.    #endif
  118.    have visual age C++ installed.
  119.    <$eExample>
  120.  
  121.  
  122.    ;--- Can now have recursive #include -------------------------------------
  123.    <CENTER><H1>TRYME.IT SOURCE</H1></CENTER>
  124.    <$ExampleFile FILE="<?InputFile>" STATE="REMEMBER">
  125. #endif
  126.  
  127.  
  128.  
  129. ;--- Simple End of HTML (footer) --------------------------------------------
  130. <P><HR>
  131. <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=8 CELLSPACING=0 WIDTH="100%">
  132.    <TR>
  133.        <TD ALIGN=LEFT><CENTER><A HREF="<$PpwizardWebAddress>">Made<BR>with<BR>PPWIZARD<BR>and<BR><?OpSys></A></CENTER>
  134.        <TD ALIGN=MIDDLE><$ShortNameHtmlLowerCase>
  135.                         #ifndef  NO_TIME_WANTED
  136.                                  ;--- user did not use "/define" or similar to indicate that a time is not desired ---
  137.                                  <HR>
  138.                                  Built at<BR><$DateTime>
  139.                         #endif
  140.        <TD ALIGN=RIGHT><A HREF="mailto:<$MyEmailAddress>"><$MyEmailAddress></A>
  141.    </TR>
  142. </TABLE>
  143. </BODY></HTML>
  144.  
  145. 
  146.