fix Issue 12981 - Can't refer to 'outer' from mixin template