Skip to content

Commit

Permalink
- Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 committed Nov 2, 2017
1 parent 932522f commit 783b966
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/Placeholders.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ $webLoader->addPathsPlaceholders([
'configFiles' => 'path/to/configuration/files'
]);

// In the Compiler, there are *Exists methods that can help you avoid unwanted exceptions when working
// with WebLoader object on multiple places
if ( ! $webLoader->getCompiler()->pathPlaceholderExists('cssDir')) {
$webloader->addPathsPlaceholders([
'cssDir' => 'path/to/other/css/files'
]);
}

// Usage
$webloader->createFilesCollectionsFromConfig('%configFiles%/webloader.neon');

Expand Down

0 comments on commit 783b966

Please sign in to comment.