|
The 'Files.txt' file (located in 'source' directory) contains the
list of template processing rules.
<source file> <destination file> [table name]
'Table name' is an optional parameter that must be provided for
templates that are table specific such as 'list.asp', 'edit.asp' etc.
If the 'table name' parameter is a specified file, it will be
processed for each table in the project. Otherwise the template file
will be processed just once.
Files.txt supports a conditional compilation. See Template
language reference for more information on syntax.
Example:
##if @t.bAdd || @t.bInlineAdd##
add.asp ##@t.strShortTableName##_add.asp ##@t.strDataSourceTable##
##endif##
This code snippet tells the wizard to create Add page
(tablename_add.asp file) if the 'Add' or
'Inline Add' options have
been selected for this table.
Each business template (Cars, Vacations, Paypal etc) has its own
'files.txt' which overrides the rules defined in the main file.
If you add your own files to the template, it's necessary for you to
add a new line to the 'files.txt' file that defines how new file
should be processed. |