Sha256: 4c29c80adab74ac50ae70b8f451b95f839ccf6c9c62870966cfcf420de91433f

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

linkTo = (label, link, opts) ->
  if (! link)
    link = label
  a href:link, -> label

navBar = (args...)->
  if args.length == 2
    opts = args.shift()
  else
    opts = {}
  f = args[0]

  navWrap = opts.navWrap || ul
  linkWrap = opts.linkWrap || li

  methods =
    linkTo: (name, href)->
      if (! href)
        href = name
      linkWrap -> linkTo name, href

  navWrap ->
    f(methods)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ice-0.5.1 js/lib/coffeekup-path-helper.coffee
ice-0.5.0 js/lib/coffeekup-path-helper.coffee