s:import

Import a variable from global scope.

INPUT
<s:set var="x">3</s:set>
<s:scope>
    <s:import var="x" />
    <s:increment var="@x" />
    <p>
        scoped x is {{ @x }}
    </p>
</s:scope>
<p>
    global x is {{ x }}
</p>
OUTPUT
scoped x is 4
global x is 3
☼ ☼ ☼ anotomy ☼ ☼ ☼
name=""  var=""  

The variable name to import.

default=""  

Default value for the variable if it does not exist in the global scope.

INPUT
<s:scope>
    <s:import name="y" default="foo" />
    <p>
        {{ @y }}
    </p>
</s:scope>
OUTPUT
foo
required=""  

Throw an error if the variable does not exist and default= is not set.