Skip to:
Example from the docs:
https://boxlang.ortusbooks.com/boxlang-language/program-structure#scripts-templates
println( "I am a script" ) ``` <!--- Now I can do templating ---> <bx:output>hello</bx:output> ``` // Now I am back in scripts println( "scripts again" )
Outputs:
I am a script scripts again hello
Expected:
I am a script hello scripts again
PR to update the documentation:
https://github.com/ortus-boxlang/boxlang-docs/pull/16
So @Brad Wood has pointed out that this example in the docs is not correct. It should be:
echo( "line 1" ) ``` <!--- Now I can do templating ---> <bx:output>line 2</bx:output> ``` // Now I am back in scripts echo( "line 3" )
So using echo, not println.
Closing this ticket as not a (BoxLang) bug, but a documentation issue.
Example from the docs:
https://boxlang.ortusbooks.com/boxlang-language/program-structure#scripts-templates
println( "I am a script" ) ``` <!--- Now I can do templating ---> <bx:output>hello</bx:output> ``` // Now I am back in scripts println( "scripts again" )
Outputs:
I am a script scripts again hello
Expected:
I am a script hello scripts again