|
Command line interface |
Top Previous Next |
|
Use the -t option to specify files, filemasks or filelist for template files.
Example 1: >encode5 -r -t"myproject/templates/*.tpl" "myproject/*"
You may specify multiple -t options if you need. All other files which are not specified as templates will be encoded as PHP scripts. If you use -f option (see below) to specify files to encode then files specified by -f options will be encoded as PHP scripts, files specified by -t options will be encoded as templates and all other files will not be encoded and will be copied into output directory as-is if it was specified by -o option.
You may use filelists for specifying template files and use filemasks as well as normal filenames in the list for it.
Example 2: if mytemplates contains: *.tpl *.html *.htm templates/mytemplate.txt
>encode5 -r -t @mytemplates -o output_dir source_dir This command will encode templates/mytemplate.txt, *.tpl, *.html and *.htm files in source_dir as temptemplates will encode all other files in source_dir as PHP scripts.
Example 3: if additionally myphpfiles contains: *.php *.inc
>encode5 -r -t @mytemplates -f @myphpfiles -o output_dir source_dir This command will encode *.tpl, *.html and *.htm files in source_dir as temptemplatesphp and *.inc files as PHP scripts and will leave all other files from source_dir unencoded but copied into the output_dir. (see details below about new -f option)
|