Code: Select all
include "_functions.inc"
text self("script");Code: Select all
include "_functions.inc"
text self("script");Code: Select all
"A" echo "A<crlf>" . self('script');
"B" echo "B<crlf>" . self('script');Code: Select all
echo 'goodbye'; // note the indentation!Code: Select all
"Test"
echo 'hello';
include 'ScriptBody.xyi'
echo self('script');Code: Select all
<<<HEREDOC
Hello world!
What's going on?
HEREDOC;Code: Select all
"Test"
echo // uses HEREDOC from include file
include 'ScriptBody.xyi'To me that's classical inlining - without a compiler, of course.TheQwerty wrote:Include isn't really a script command either, it's a pre-processor one - so before XY even begins running the script it makes a pass replacing the include statements with the referenced files' contents.