Sha256: 972e8f330c015ec2ab93ff2f7a69c88f1dd4c85513f9ab5371d09e072d086e4e

Contents?: true

Size: 414 Bytes

Versions: 11

Compression:

Stored size: 414 Bytes

Contents

#= require joosy/joosy
#= require joosy/helpers/view

#
# Rendering and string representation helpers
#
Joosy.helpers 'Routes', ->

  @linkTo = (name='', url='', tagOptions={}) ->
    if Object.isFunction tagOptions
      block = tagOptions
      [url, tagOptions] = [name, url]
      name = block()

    Joosy.Helpers.Application.contentTag 'a', name, Joosy.Module.merge(tagOptions, 'data-joosy': true, href: url)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
joosy-1.2.0.alpha.73 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.71 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.70 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.68 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.67 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.66 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.65 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.64 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.63 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.62 source/joosy/helpers/routes.coffee
joosy-1.2.0.alpha.59 source/joosy/helpers/routes.coffee