wwUtils::MergeTextFromFile

Like MergeText except the content is loaded from a file.

o.wwUtils.MergeTextFromFile(tcFile, tlCacheTemplate, tcDelimiter,tcDelimiter2,llNoAspSyntax)

Return Value

Merged output or "" if file doesn't exist

Parameters

tcFile
The file that is read in order to merge data from disk.

tlCacheTemplate
Determines whether the template loaded from disk is cached and not reloaded on each hit prior to merging. If cached the cache cursor (wwCacheFile) needs to be cleared to see a template change.

Note: If you want to cache expanded/merged content use the CacheFile function and set the llMergeText parameter to .T.

tcDelimiter
The starting expression delimiter. Default <%=

tcDelimiter2
Ending expression delimiter Default: %>

llNoAspSyntax
Set to .T. if you're not using ASP syntax which can use an <%= to direct eval.


See also:

Class wwUtils

© West Wind Technologies, 2023 • Updated: 02/08/16
Comment or report problem with topic