Home

WebWorks Publisher Cookbook code samples

Examples:

100 101 102 103 104 105 106

Building (context-) sensitive, caring help


      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      
Example 100
#include mappings.h

      

      
Example 101
#include mappings.h

      

      
Example 102
@WRITE(append,host,$PROJECTNAME[" ","_"];.h,#define $BBTopicID; $DATA; 
);

      

      

      
Example 103
@SET_GLOBAL(aliases, $GET_GLOBAL(aliases);\
$PAGE(host, basename)["\.", "_"]; = $PAGE(host, basename);
);
@SET_GLOBAL(defines, $GET_GLOBAL(defines);\
#define $PAGE(host, basename)["\.", "_"]; $DATA;
);

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      
Example 104
@WRITE(append,host,$PROJECTNAME;.h,$PAGE(html,name);#$AUTOTAG; $GET_COUNTER(topiccount); /* $DATA(raw)["[\r\n]+",""]; */
);\
@INC_COUNTER(topiccount);

      

      

      
Example 105
@SET_GLOBAL(mapfile,$GET_GLOBAL(mapfile);
$DATA;\, $PAGE(html,name););
Example 106
@WRITE(overwrite, host, mapfile.h, $GET_GLOBAL(mapfile););

Top of page

Copyright © 2001 Scriptorium Publishing Services.
These code samples correspond to examples provided in The WebWorks Publisher Cookbook. Cookbook owners may use this code for their WebWorks Publisher projects.