[Radiant] [ANN] Data Pages extension
Andrew O'Brien
obrien.andrew at gmail.com
Fri Jan 4 23:16:25 CST 2008
Started up a Google Code project -- here's the new URL:
http://code.google.com/p/data-pages-extension/
(Also added to the 3rd Party Extensions page.)
On Jan 4, 2008 6:44 PM, Andrew O'Brien <obrien.andrew at gmail.com> wrote:
> I'd like to announce the initial release of my data pages extension.
>
> http://s3.amazonaws.com/radiant_data_pages/data_pages.tgz
>
> (URL may change -- I'm just now trying out the whole S3 thing...)
>
> This extension allows you to call external data and template it using
> some handy Radius tags. External data is in JSON format (others may
> be supported in the future). See the README and specs for
> documentation.
>
> The main use-case I see (and what I'm actually using it for) is making
> pretty reports from some kind of automated application or database
> output (provided you turn it into JSON first). Since it gets the JSON
> over HTTP it can pull from flat files or even a live application.
>
> Incidentally, I'm looking for some kind of hosting for this. I use
> Mercurial, so it may be a bit of a pain adding into an SVN repository.
>
> Anyway, here's the example from the README:
>
> localhost/some_data.js:
> {
> "name": "Andrew",
> "favorite_color": "red... no -- blue!",
> "monkeys": [
> "rhesus",
> "howler"
> ]
> }
>
> localhost:3000/template (body part):
> <r:data src="localhost/some_data.js">
> <p>My name is <r:value key="name"/></p>
> <p>My favorite color is <r:value key="favorite_color"/></p>
> <ul>
> <r:values key="monkeys">
> <li><r:value></li>
> </r:values>
> </ul>
> </r:data>
>
> Output:
>
> <p>My name is Andrew</p>
> <p>My favorite color is red... no -- blue!</p>
> <ul>
> <li>rhesus</li>
> <li>howler</li>
> </ul>
>
More information about the Radiant
mailing list