Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics

Template files processing rules (Files.txt)

Scroll Prev Next More

The Files.txt file

The Files.txt file (located in the source directory) contains the list of template processing rules.

 

<source file> <destination file> [table name]

 

The [table name] is an optional parameter that must be provided for the table specific templates, such as list.asp, edit.asp, etc. If the [table name] parameter is a specified file, it is processed for each table in the project. Otherwise the template file is processed once.

 

Files.txt supports a conditional compilation. See Template language reference for more info on the syntax.

Example

##if @t.bAdd || @t.bInlineAdd##
add.asp ##@t.strShortTableName##_add.asp ##@t.strDataSourceTable##
##endif##

 

This code snippet tells the wizard to create an Add page (tablename_add.asp file) if the Add or Inline Add options have been selected for this table.

 

Each business template (Cars, Events, PayPal, etc.) also has files.txt which overrides the rules defined in the main file.

 

If you add your files to the template, it's necessary for you to add new lines to the files.txt file to define how the new files should be processed.

See also:

ASPRunnerPro templates

Template language

About business templates

Choose pages screen