Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
Conflicts:
	doc-src/HAML_CHANGELOG.md
  • Loading branch information
nex3 committed Dec 29, 2010
2 parents 0afadc6 + 5c34fe2 commit 87c0810
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions doc-src/HAML_CHANGELOG.md
Expand Up @@ -22,6 +22,10 @@

* Drop support for Hpricot 0.7. 0.8 has been out for nearly two years.

## 3.0.26 (Unreleased)

* Allow custom filters to be loaded from the command line.

## 3.0.25

[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.25).
Expand Down
6 changes: 3 additions & 3 deletions lib/haml/exec.rb
Expand Up @@ -263,16 +263,16 @@ def process_result
template = input.read()
input.close() if input.is_a? File

@options[:load_paths].each {|p| $LOAD_PATH << p}
@options[:requires].each {|f| require f}

begin
engine = ::Haml::Engine.new(template, @options[:for_engine])
if @options[:check_syntax]
puts "Syntax OK"
return
end

@options[:load_paths].each {|p| $LOAD_PATH << p}
@options[:requires].each {|f| require f}

if @options[:debug]
puts engine.precompiled
puts '=' * 100
Expand Down

0 comments on commit 87c0810

Please sign in to comment.