Sha256: 65fe8b61cb7e0a135029c813602f7d1716620892b575a161598e074f6527c059

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

class FormTag < Amrita2::Macro::Base
  TemplateText = <<-END
    <%
       action = $_[:action]
       method = $_[:method]
     %>
    <%%= form_tag({:action=><%= action.inspect%>}, {:method=><%= method.inspect %>}) %%>
      <span macro:src='contents' />
    <%%= "</form>" %%>
  END

  Option = {
    :tag => :form_tag,
    :use_contents => :contents
  }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amrita2-2.0.0 sample/login_engine/app/helpers/form_tag.rb
amrita2-2.0.1 sample/login_engine/app/helpers/form_tag.rb
amrita2-2.0.2 sample/login_engine/app/helpers/form_tag.rb