Yugal Shorthand
Yugal have a shortcut to point to files from src directory to make it easier to make projects portable so that projects can be easily deployed.
Use {@} in path to point at src/ directory in Yugal
Example
<?php
return <<<HTML
<body>
<img src="{@}/@assets/yugal.png" alt="I am Image bro" />
</body>
HTML;
?>Ignored Directories
Yugal Router ignores every directory in src , the name of which begins with @ so that developers can make their directories which should be ignored by Yugal's router. So that the inside content of these directories won't get treated as pages .
Last updated