Sha256: 75b3d948cf088d2baa37868e0619660ec9f97563281e26ef90636864f996b219

Contents?: true

Size: 406 Bytes

Versions: 24

Compression:

Stored size: 406 Bytes

Contents

add(a, b)
  div(a, b)
    a / b
  a + div(b, 2)

body
  padding add(1,5)
  // => 3.5

add(a, b)
  half()
    b / 2
  a + half()

body
  padding add(1,5)
  // => 3.5

getFunction(name)
  if name == 'add'
    add(a, b)
      a + b
  else
    sub(a, b)
      a - b

body
  fn = getFunction('add')
  padding fn(5, 5)
  // => 10
  
  fn = getFunction('sub')
  fn2 = fn
  fn3 = fn2
  padding fn3(5, 5)
  // => 0

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stylus-source-0.23.0 vendor/test/cases/functions.nested.styl
stylus-source-0.22.6 vendor/test/cases/functions.nested.styl
stylus-source-0.22.5 vendor/test/cases/functions.nested.styl
stylus-source-0.22.4 vendor/test/cases/functions.nested.styl
stylus-source-0.22.3 vendor/test/cases/functions.nested.styl
stylus-source-0.22.2 vendor/test/cases/functions.nested.styl
stylus-source-0.22.1 vendor/test/cases/functions.nested.styl
stylus-source-0.22.0 vendor/test/cases/functions.nested.styl
stylus-source-0.21.2 vendor/test/cases/functions.nested.styl
stylus-source-0.21.1 vendor/test/cases/functions.nested.styl
stylus-source-0.21.0 vendor/test/cases/functions.nested.styl
stylus-source-0.20.1 vendor/test/cases/functions.nested.styl
stylus-source-0.20.0 vendor/test/cases/functions.nested.styl
stylus-source-0.19.8 vendor/test/cases/functions.nested.styl
stylus-source-0.19.7 vendor/test/cases/functions.nested.styl
stylus-source-0.19.6 vendor/test/cases/functions.nested.styl
stylus-source-0.19.5 vendor/test/cases/functions.nested.styl
stylus-source-0.19.4 vendor/test/cases/functions.nested.styl
stylus-source-0.19.3 vendor/test/cases/functions.nested.styl
stylus-source-0.19.2 vendor/test/cases/functions.nested.styl