Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Allow generic media type marshalling (as rdf, xhtml, xml, json) customization

#53

Change builder processing to recursive invocations so it allows customization.

Reported by Guilherme Silveira · April 30th, 2010 @ 03:29 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Marcio Vinicius dos Santos
    Marcio Vinicius dos Santos
    • Assigned user cleared.

    Does recursive invocation allow creation of the atom feed below or do I need to create a new ticket ?

    Portion of feed with recursive invocation:

            <articles:body type="html">body</articles:body>
                <articles:creation>
                <articles:author>John Dee</articles:author>
                <articles:creation_date>2010-05-03T16:29:26-03:00</articles:creation_date>
            </articles:creation>
    

    Full feed sample:

    <feed xmlns="http://www.w3.org/2005/Atom" xmlns:articles="http://localhost:3000/articles">
        <id>http://localhost:3000/articles</id>
        <title>Articles Feed</title>
        <updated>2010-05-03T16:29:26-03:00</updated>
        <entry>
            <title>article title</title>
            <id>http://localhost:3000/articles/article_title</id>
            <updated>2010-05-03T16:29:26-03:00</updated>
            <link href="http://localhost:3000/articles/article_title" rel="self"/>
            <articles:body type="html">body</articles:body>
                <articles:creation>
                <articles:author>John Dee</articles:author>
                <articles:creation_date>2010-05-03T16:29:26-03:00</articles:creation_date>
            </articles:creation>
        </entry>
    </feed>
    

    May 4th, 2010 @ 10:47 AM

  2. Guilherme Silveira
    Guilherme Silveira

    Hello marcio, yes it already supports this type of rendering even without the recursive approach, try the follwogin:

    Describe_collection( [@articles]) do
    End

    Note that ive added your collection within a collection, so you have a feed of collections, as you wished. Just describe the fields with namespace. Let me know if you need the exact code.

    Regards

    May 4th, 2010 @ 11:42 PM

  3. Marcio Vinicius dos Santos
    Marcio Vinicius dos Santos

    Hi Guilherme, would you please show one sample ?
    best regards

    May 5th, 2010 @ 11:12 AM

  4. Guilherme Silveira
  5. Guilherme Silveira

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.