Difference between revisions of "File bmc/mods/MODULE/make_mod.def"
Jump to navigation
Jump to search
(Created page with "<syntaxhighlight lang="JavaScript" line="line" highlight="28,31-34,41-42"> //GLOBAL:: DEF WMC; DEF RUN; DEF DOCUMENT; DEF MODULE { DEF print_doc:RUN { write(...") |
|||
| Line 46: | Line 46: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | === Line 28 === | ||
| + | Put one or more INCLUDE statements here. | ||
| + | === Lines 31-34 === | ||
| + | Define the following global strings: | ||
| + | # THE_MODULE_NAME | ||
| + | :: This has to be equal to the name of the module. | ||
| + | # THE_MODULE_VERSION | ||
| + | :: Set this to the version string of the module. E.g. "v01", "v02", ... or any other string. | ||
| + | # THE_MAIN_TABLE_PATH | ||
| + | :: Some operations refer to the main table used by this module. | ||
| + | # THE_MAIN_DATABSE_PATH | ||
| + | :: This specifies the main database used by this module. | ||
| + | === Lines 41-42 === | ||
| + | This creates a copyright note which is included in some of the files generated by bmc. You may change this to your own copyright statement. | ||
Revision as of 18:38, 15 July 2019
1 //GLOBAL::
2
3 DEF WMC;
4 DEF RUN;
5 DEF DOCUMENT;
6
7 DEF MODULE
8 {
9 DEF print_doc:RUN
10 {
11 write(
12 BLOCKS="_:DOCUMENT[]";
13 OUTPATH="PATH";
14 PRINTER="OUTPUT";
15 );
16 }
17 }
18
19 DEF MAIN:WMC
20 {
21 set(TARGET_PATH="./";);
22 set(FILES_LOG="true";LOGPATH="log/files0.log";);
23 run(MODULE="module";RUN="print_doc";);
24 }
25
26 DEF module:MODULE
27 {
28 INCLUDE="../common/def/module_min0.def";
29 }
30
31 DEF THE_MODULE_NAME="MyModuleName";
32 DEF THE_MODULE_VERSION="MyModuleVersion";
33 DEF THE_MAIN_TABLE_PATH="MyModuleName.MyMainDatabaseName.MyMainTableName";
34 DEF THE_MAIN_DATABSE_PATH="MyModuleName.MyMainDatabaseName";
35
36 DEF TEXTS
37 {
38 DEF COPY
39 {
40 ->
41 //FILE: @PATH
42 @root.NAME[code='testing:intro()']
43 <--
44 }
45 }
Line 28
Put one or more INCLUDE statements here.
Lines 31-34
Define the following global strings:
- THE_MODULE_NAME
- This has to be equal to the name of the module.
- THE_MODULE_VERSION
- Set this to the version string of the module. E.g. "v01", "v02", ... or any other string.
- THE_MAIN_TABLE_PATH
- Some operations refer to the main table used by this module.
- THE_MAIN_DATABSE_PATH
- This specifies the main database used by this module.
Lines 41-42
This creates a copyright note which is included in some of the files generated by bmc. You may change this to your own copyright statement.