LearnBoost/stylus — Issue #525: Interpolation issue
Author: ianstormtaylor
Created: 2012-01-18 01:15:08+00:00
State: open

Not sure if I'm just misusing interpolation, but this...

```
-border-helper(position, args)
if -border-{position}-{args} is a 'function'
-border-{position}-{args}()
else if -border-{position} is a 'function'
-border-{position}(args)
else
border-{position}: args
```

...gives this error...

```
ParseError: /Users/Storm/segmentio/src/services/segmentio/public/public/stylesheets/utils/helpers/border.styl:102
98|
99|
100|
101| -border-helper(position, args)
> 102| if -border-{position}-{args} is a 'function'
103| -border-{position}-{args}()
104| else if -border-{position} is a 'function'
105| -border-{position}(args)

expected "indent", got "is a"
```