Forum: Radiant CMS render json data into HTML Header

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bartee L. (Guest)
on 2009-01-02 19:29
I am writing an extension.  I have a couple of approaches.

I would like to like json data, into the HTML <head> section.

Is there any what do that from an extension ?
Sean C. (Guest)
on 2009-01-02 19:55
(Received via mailing list)
In the <head> of the admin UI or in a page (front-end)?  For the admin
UI, use a block like so:

- content_for :page_scripts do
  :plain
      = my_json_data

For a page, you'll need to write a Radius tag that outputs the JSON you
want.

Sean
This topic is locked and can not be replied to.