Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item's not rendered within feed #61

Closed
bonesoul opened this issue May 9, 2016 · 0 comments
Closed

Item's not rendered within feed #61

bonesoul opened this issue May 9, 2016 · 0 comments

Comments

@bonesoul
Copy link

bonesoul commented May 9, 2016

            var feed = feedCreator.create({
                title: 'mysite',
                description: 'RSS akışı',
                url: 'http://www.mysite.com/feed/'
            });

            _.each(juices, function (juice) {
                feed.item({
                    title: juice.name,
                    description: juice.descripton,
                    url: util.format('http://www.mysite.com/likit/'),
                    date: juice.createdAt
                });
            });

            res.send(feed.xml());

output;

<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[BuharMetre.com]]></title><description><![CDATA[BuharMetre.com RSS akışı]]></description><link>http://www.buharmetre.com</link><image><url>http://www.buharmetre.com/images/logo/logo.png</url><title>BuharMetre.com</title><link>http://www.buharmetre.com</link></image><generator>RSS for Node</generator><lastBuildDate>Mon, 09 May 2016 08:57:43 GMT</lastBuildDate><atom:link href="http://www.buharmetre.com/feed/" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 May 2016 08:57:43 GMT</pubDate><copyright><![CDATA[© 2016 BuharMetre.com]]></copyright><language><![CDATA[tr]]></language><managingEditor><![CDATA[BuharMetre.com]]></managingEditor><webMaster><![CDATA[BuharMetre.com]]></webMaster><ttl>60</ttl><category><![CDATA[Likit]]></category></channel></rss>

So my added items are not added to feed and I'm sure that the query has items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant