: Formats the current data context and outputs it.
== Gotchas
Make sure you're not hosting the JSON resources in the same server process as Radiant. Since Rails is not threadsafe, this will cause deadlock (the template page will be waiting for the JSON resource, which will not be retrieved since Radiant is blocking...).
== Examples
=== Simple example
localhost/some_data.js
{
"name": "Andrew",
"favorite_color": "red... no -- blue!",
"monkeys": [
"rhesus",
"howler"
]
}
localhost:3000/template (body part)
My name is
My favorite color is
Output
My name is Andrew
My favorite color is red... no -- blue!