Sha256: a07b5a2c301d22038c033f5a3d872ddf79835506b2758acb0d5e55309698a0f0

Contents?: true

Size: 1.56 KB

Versions: 17

Compression:

Stored size: 1.56 KB

Contents

---
---
!!! XML

%feed{ 'xml:lang'=>'en-US', :xmlns=>'http://www.w3.org/2005/Atom' }
  %id= "#{page.content_url}/"
  %title= escape_once( page.title )
  - if ( not site.author.nil? )
    %author
      - if ( defined?( site.author.name ) )
        %name= site.author.name
        - if ( site.author.email )
          %email= site.author.email
      - else
        %name= site.author
  - unless page.entries.empty?
    %updated= page.entries.first.input_mtime.xmlschema
    %link{:rel=>"self",      :type=>"application/atom+xml", :href=>"#{site.base_url}#{page.url}" }
    %link{:rel=>"alternate", :type=>"text/html",            :href=>"#{page.content_url}/" }
    - for entry in page.entries
      %entry
        %id #{site.base_url}#{entry.url}
        %title= escape_once( entry.title )
        %updated= entry.input_mtime.xmlschema
        %published= entry.date.xmlschema
        %link{:rel=>"alternate", :type=>"text/html", :href=>"#{site.base_url}#{entry.url}" }
        - if ( not entry.author.nil? )
          %author
            - if ( defined?( entry.author.name ) )
              %name= entry.author.name
              - if ( entry.author.email )
                %email= entry.author.email
            - else
              %name= entry.author
        - if ( not entry.tags.nil? )
          - for tag in entry.tags
            %category{:term=>"#{tag}"}
        %summary
          #{summarize( html_to_text( entry.content ).strip, 100 )}
        %content{:type=>'html'}
          = clean_html( html_escape( fully_qualify_urls( site.base_url, find_and_preserve( entry.content ) ) ) )
  

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
awestruct-0.6.7 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.6 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.5 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.4 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.3 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.2 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.1 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.0 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.0.RC1 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.0.alpha4 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.0.alpha3 lib/awestruct/extensions/template.atom.haml
awestruct-0.6.0.alpha1 lib/awestruct/extensions/template.atom.haml
awestruct-0.5.7 lib/awestruct/extensions/template.atom.haml
awestruct-0.5.7.RC2 lib/awestruct/extensions/template.atom.haml
awestruct-0.5.7.RC1 lib/awestruct/extensions/template.atom.haml
awestruct-0.5.6 lib/awestruct/extensions/template.atom.haml
awestruct-0.5.6.beta9 lib/awestruct/extensions/template.atom.haml