Vizard 7 » Command Index » Vizard modules » viz » <viz:res>.addPublishFile
7.7

<viz:res>.addPublishFile

Add a file to publish dependency list

<viz:res>.addPublishFile(  
filename  
)  
filename
Resource filename

Remarks

This command manually adds a file to the publish dependency list. There are a few cases where Vizard can miss some dependencies. To work around this, you can use this command to notify Vizard that your script depends on the specified file.

Return Value

None

Example

# Specify some publish dependencies
viz.res.addPublishFile('help.htm')
viz.res.addPublishFile('help.css')

See also

<viz:res>.addPublishDirectory
<viz:res>.addPublishFileLoader
<viz:res>.addPublishFilter
<viz:res>.addPublishImageLoaders
<viz:res>.getPublishedPath