Sha256: 2898cf38a050abbc881b900d00e985952474bd771df0ffed0561b0d61ae8987f

Contents?: true

Size: 712 Bytes

Versions: 13

Compression:

Stored size: 712 Bytes

Contents

collection(@some_articles) do |collection|
    collection.values do |values|
        values.id      "http://example.com/json"
        values.title   "Feed"
        values.updated Time.now

        values.author {
            values.name  "John Doe"
            values.email "joedoe@example.com"
        }

        values.author {
            values.name  "Foo Bar"
            values.email "foobar@example.com"
        }
    end

    collection.link("next"    , "http://a.link.com/next")
    collection.link("previous", "http://a.link.com/previous")

    collection.members(:root => "articles") do |member, article|
        partial("feed_member", :locals => {:member => member, :article => article})
    end
end

Version data entries

13 entries across 12 versions & 3 rubygems

Version Path
hypertemplate-1.2.2 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.2.1 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.2.1 test/rails3_skel/app/views/test/feed.tokamak
hypertemplate-1.2.1 test/rails2_skel/app/views/test/feed.tokamak
hypertemplate-1.2.0 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.2.0 test/rails2_skel/app/views/test/feed.tokamak
rack-xml_stylesheet-0.0.1 test/rails23_root/app/views/tests/feed.tokamak
tokamak-1.1.5 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.1.4 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.1.3 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.1.2 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.0.0.beta4 test/rails2_skel/app/views/test/feed.tokamak
tokamak-1.1.1 test/rails2_skel/app/views/test/feed.tokamak