Permalink
Browse files

Clarify how options should be set

[ci skip]
  • Loading branch information...
1 parent 847b62a commit 18315b0cbd1317f274cf347075401d08e287c390 @norman norman committed Jun 11, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 REFERENCE.md
View
@@ -104,13 +104,14 @@ You can then use it by including the "haml" gem in Ruby code, and using
Haml understands various configuration options that affect its performance and
output.
-In Rails, options can be set by setting the {Haml::Template#options Haml::Template.options}
+In Rails, options can be set by setting the {Haml::Template#options Haml::Template.options}
hash in an initializer:
# config/initializers/haml.rb
Haml::Template.options[:format] = :html5
-You can also set them by configuring them globally in Haml::Options.defaults:
+Outside Rails, you can set them by configuring them globally in
+Haml::Options.defaults:
Haml::Options.defaults[:format] = :html5
@@ -258,7 +259,7 @@ could render as any of:
<div class="sort descending">Contents</div>
<div>Contents</div>
-depending on whether `@item.type` is `"numeric"` or `nil`, whether `@item == @sortcol`,
+depending on whether `@item.type` is `"numeric"` or `nil`, whether `@item == @sortcol`,
and whether `@sortdir` is `"ascending"` or `"descending"`.
If a single value is specified and it evaluates to false it is ignored;

0 comments on commit 18315b0

Please sign in to comment.