Skip to content

Commit

Permalink
Fix logic bug - fix for 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bartholomew committed Mar 20, 2010
1 parent ded44f0 commit 1415611
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion lib/staticmatic/mixins/render.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def generate_html(source_file, source_dir = '')
begin
# clear all scope variables except @staticmatic
@scope.instance_variables.each do |var|
@scope.instance_variable_set(var, nil) unless var == ('@staticmatic' || :@staticmatic)
@scope.instance_variable_set(var, nil) unless var == '@staticmatic' || :@staticmatic
end
html = generate_html_from_template_source(File.read(full_file_path))

Expand Down
10 changes: 0 additions & 10 deletions spec/sandbox/test_site/site/index.html

This file was deleted.

4 changes: 0 additions & 4 deletions spec/sandbox/test_site/site/page_with_error

This file was deleted.

4 changes: 0 additions & 4 deletions spec/sandbox/test_site/site/page_with_partial_error

This file was deleted.

0 comments on commit 1415611

Please sign in to comment.