Tag island Templating outputs in unexpected order

Description

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

Activity

Show:

John WhishAugust 16, 2024 at 8:32 PM

John WhishAugust 16, 2024 at 8:27 PM

So 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.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created August 16, 2024 at 8:22 PM
Updated August 23, 2024 at 12:48 PM
Resolved August 16, 2024 at 8:32 PM