DEPRECATION WARNING

This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

IncludeFileViewHelper

ViewHelper to include a css/js file

Type: Basic

General properties

Name: Type: Description: Default value:
compress boolean Define if file should be compressed  
* path string Path to the CSS/JS file which should be included  

Examples

Basic example

Code:

<n:includeFile path="{settings.cssFile}" />

Output:

This will include the file provided by {settings} in the header