Sha256: 4ab8266cea133dfcca6d0ea8ffe012317f6a091d98917edb75e6644fbbd413e5

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

# HREF

class Ruty::Tags::Href < Ruty::Tag
  def initialize(parser, argstring)
    @argstring = argstring
  end
  def render_node(context, stream)
    stream << Ruty::AUX_VARS[:controller].href(@argstring)
  end
  Ruty::Tags.register(self, :href)
  Ruty::Tags.register(self, :href_to)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alfa-0.0.8.pre lib/ruty/tags/href.rb
alfa-0.0.7.pre lib/ruty/tags/href.rb
alfa-0.0.6.pre lib/ruty/tags/href.rb
alfa-0.0.5.pre lib/ruty/tags/href.rb