Returns the content of a file.
Name | Type | Description |
---|---|---|
of | string | The path to the file relative to the baseDir |
Documentation source:
{{ fileContent(of: 'config.php') }}
Result:
<?php
/** @var \CodeDocs\Config $config */
$config->baseDir = __DIR__;
$config->buildDir = './build';
$config->docsDir = './docs-src';