Skip to content

Instantly share code, notes, and snippets.

@MayogaX
Created December 19, 2012 18:14
Show Gist options
  • Select an option

  • Save MayogaX/4338960 to your computer and use it in GitHub Desktop.

Select an option

Save MayogaX/4338960 to your computer and use it in GitHub Desktop.
View do retorno do meu feed do meu blog
@model List<mayogaxdevblog.Models.Post>
@{
Layout = null;
}
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>MayogaX dev blog</title>
<link href="http://dev.mayogax.me/" />
<link href="http://feeds.feedburner.com/mayogaxdevblog/" rel="self" />
@foreach(mayogaxdevblog.Models.Post post in Model)
{
<entry>
<title>@post.Titulo</title>
<author>
<name>Priscila Mayumi Sato (a.k.a. MayogaX)</name>
<uri>http://dev.mayogax.me/</uri>
</author>
<published>@post.Data.ToShortDateString()</published>
<link href="http://dev.mayogax.me/@post.Slug"/>
<content type="html">@Html.Raw(post.Conteudo)</content>
</entry>
}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment