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 initialise
the extension
3. Run rake radiant:extensions:file_system_resources:migrate
4. Restart Webserver
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/radiant/layouts/your-layout-name.radius RAILS_ROOT/radiant/snippets/your-snippet-name.radius
- Register your layouts/snippets. (needed only when add/remove, not on edit)
rake radiant:extensions:file_system_resources:register
- Your newly created layouts/snippets are now available to use in admin panel.