The Atomizer
extension takes an array of blog posts, and
generates an Atom feed at the specified location.
Items fed to the Atomizer
extension must meed some criteria
in terms of properties returning data:
Property | Description |
---|---|
title |
Title of the entry |
date |
Date of the entry |
author |
Either a simple string, or an object providing name and email properties |
content |
The full content of the entry (HTML is allowed) |
Awestruct::Extensions::Atomizer.new(var_name, output_path, opts)
Parameter | Description |
---|---|
var_name
|
Name of property on `site` to act as a source of posts, typically an array |
output_path
|
/extensions/atomizer/usage.html |
opts
|
Options for title, content url and generated entries |
Awestruct::Extensions::Pipeline.new do
extension Awestruct::Extensions::Atomizer.new(var_name, output_path, opts)
end
Awestruct::Extensions::Pipeline.new do
extension Awestruct::Extensions::Atomizer.new(
:posts,
'/news.atom',
:feed_title=>'Awesome Blog Inc.'
)
end