Sha256: 02ade6dceaf39ad2881f0de62547ed04caff2e2b144100dbf0f5fa2ba8441c24

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

!!! XML
%feed{:xmlns => 'http://www.w3.org/2005/Atom'}
  %title= config.blog_title
  %link{:href => url_for('/', :absolute => true)}
  %id= base_url
  - if @posts.any?
    %updated= @posts.first.published_at

  %author
    %name= config.author_name

  - @posts.each do |post|
    %entry
      %title= html_escape post.title
      %link{:href => url_for(post, :absolute => true)}
      %id= url_for(post, :absolute => true)
      %published= post.published_at
      %updated= post.published_at
      %author
        %name= config.author_name
      %content{:type => 'html'}
        :cdata
          #{post.to_html}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
schnitzelpress-0.2.1 lib/views/atom.haml
schnitzelpress-0.2.0 lib/views/atom.haml