Sha256: 61f5b2736c5f4e1ca09cdf4d8809bad50ce92e6261031dcd477dbdb3e6370e78

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

function link_to(location, default_label, opts) {
  if (! default_label) {
    default_label = location
  }
  label = (opts && opts.label) || default_label
  return "<a href=\"" + location + "\">" + label + "</a>"
}

var NavBar = function () {

}

NavBar.prototype.link_to = function (link) {
  return "<li>" + link_to(link) + "</li>"
}

NavBar.prototype.open = function () {
    return "<ul class=\"linkBar\">"
}

NavBar.prototype.close = function () {
    return "</ul>"
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ice-0.2.2 ice_js/lib/path_helper.js