Sha256: 0ef68cce445d7f2592ce9f4c9821c671b8df498a75ecf24fe957f1a9cb411e6b

Contents?: true

Size: 321 Bytes

Versions: 21

Compression:

Stored size: 321 Bytes

Contents

- case @type
- when :xref
  - refid = (attr :refid) || @target
  %a(href="#{@target}")<=(@text || @document.references[:ids].fetch(refid, "[#{refid}]")).tr_s("\n", ' ')
- when :ref
  %a(id=@target)
- when :bibref
  %a(id=@target)>
  =%([#{@target}])
- else
  %a(href=@target){:class=>role, :target=>(attr :window)}=@text

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.9.pre.3 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.9.pre.2 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.9.pre.1 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.8 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.9 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.8 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.7 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.6 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.5 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.3 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.2 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.7.pre.1 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.6 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.5 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.5.pre.1 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.4 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.3 lib/resources/backends/haml/html5/inline_anchor.html.haml
hyla-1.0.2 lib/resources/backends/haml/html5/inline_anchor.html.haml