Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Updates README to reflect how things work in Rails 3+.

  • Loading branch information...
commit ed7b1692a6b5ef5da711843c99ece7fda4ba3319 1 parent d85375c
@bernardo authored
Showing with 15 additions and 11 deletions.
  1. +15 −11 dryml/README
26 dryml/README
@@ -9,24 +9,28 @@ not optimized for that and you may end up with extra carriage returns.
DRYML was created for the Hobo project, but this is an extraction from
that project and can be used separately.
-# How to use with Rails but without Hobo
+# How to use with Rails 3 but without Hobo
-- install both HoboSupport and Dryml as a plugin or gem
+- Declare the Dryml gem in your `Gemfile`
+ gem 'dryml'
-- create an `application.dryml`
+- Then update your bundle
+ $ bundle install
+- Create an `application.dryml`
$ mkdir app/views/taglibs
$ touch app/views/taglibs/application.dryml
-- create `config/initializers/dryml.rb`
- require 'dryml'
- require 'dryml/template'
- require 'dryml/dryml_generator'
- Dryml.enable
+Now you can use templates that end in ".dryml" or ".html.dryml". Controller
+layouts will still be rendered and will enclose your templates, but you can
+disable them if you wish in your ApplicationController:
-Now you can use templates that end in ".dryml". Such templates will
-ignore layouts.
+ class ApplicationController < ActionController::Base
+ layout nil
+ end
# How to use outside of Rails
Please sign in to comment.
Something went wrong with that request. Please try again.