Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Allows storing Radiant layouts and snippets on the file system
Ruby
Branch: master

This branch is 16 commits ahead of ntalbott:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/views/admin
db/migrate
lib
README.textile
Rakefile
file_system_resources_extension.rb
radiant-file_system_resources-extension.gemspec

README.textile

File System Resources

This enables the use of Radius-based layouts and snippets on the file system. Layouts go in RAILS_ROOT/radiant/layouts, and snippets go in RAILS_ROOT/radiant/snippets.

QuickStart

Install it

Radiant ~1.0

1. add gem 'radiant-file_system_resources-extension'
to your Gemfile
2. Run rake radiant:extensions:update_all to initialize
the extension
3. Run rake radiant:extensions:file_system_resources:migrate
4. Restart web server

Older versions of Radiant (without Gemfile)

1. git submodule add git://github.com/saturnflyer/radiant-file-system-resources-extension.git vendor/extensions/file_system_resources
2. Migrate it: rake radiant:extensions:file_system_resources:migrate
3. Restart webserver

Use it

  • Create your file-based layouts/snippets
    RAILS_ROOT/app/templates/layouts/your-layout-name.radius
    RAILS_ROOT/app/templates/snippets/your-snippet-name.radius
  • Register your layouts/snippets. (needed only when add/remove, not on edit)
    rake radiant:extensions:file_system_resources:register
  • Alternatively, for easy conversion you can extract an existing database resource into a file-based resource. But
    note that the new file resource will still need to be registered upon deployment.
    rake radiant:extensions:file_system_resources:extract snippets=name1,name2,etc layouts=layout1,layout2,etc
  • Your newly created layouts/snippets are now available to use in admin panel.
Something went wrong with that request. Please try again.