(Vegvisir 2, Vegvisir 3)
VV::include()Inline contents of one page inside another page.
The syntax and functionality is similar to VV::embed(), except it executes included code.
VV::include() lets you put the contents of one page into another page.
pathnamePath to a PHP file to import and evaluate relative from project root.
relativePath provided to pathname will be a relative when this parameter is true (default). Set to false to make path absolute.
This method will return whatever the compiled output of the included PHP file will be.
Let's take the following CSS stylesheet file and put it into a page.
= Snippet::put("docs/API/PHP/VV/css/example-1-0", Snippet::CSS) ?> = Snippet::put("docs/API/PHP/VV/css/example-1-1", Snippet::PHP) ?>By using VV::css() inside a style, we've enabled this stylesheet for that specific page.