Sha256: 72695bfa79236e04181f0163d292de24a008b804504a67d7925f4c4bea19f375

Contents?: true

Size: 737 Bytes

Versions: 4

Compression:

Stored size: 737 Bytes

Contents

html do
  head do
    title "Template::Markaby external"
  end
  body do
    h1 "The #{@action} Template for Markaby"
    a("Home", :href => R(:/))
    p do
      %{
        Here you can pass some stuff if you like, parameters are just passed like this:#{br}
      #{link self, @action, :one, :title => 'external/one'; br}
      #{link self, @action, :one, :two, :three, :title => 'external/one/two/three'; br}
      #{link self, @action, :one, :foo => :bar, :title => 'external?foo=bar'; br}
      }
    end
    div "The arguments you have passed to this action are:" do
      if @args.empty?
        "none"
      else
        args.each do |arg|
          span arg
        end
      end
    end
    div request.params.inspect
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ramaze-0.0.6 examples/templates/template/external.mab
ramaze-0.0.7 examples/templates/template/external.mab
ramaze-0.0.9 examples/templates/template/external.mab
ramaze-0.0.8 examples/templates/template/external.mab