Skip to content

Commit

Permalink
Ensured that paths for @include are handled properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-osman committed Nov 5, 2013
1 parent b58c162 commit 9f0b878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juice.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _parse_file(self, src_file, stack, nest_level):
stack.append(false_output)
elif cmd == 'include':
inc = stack.pop()
fn = inc['parameter'][0]
fn = '%s/%s' % (path.dirname(src_file), inc['parameter'][0],)
minify = 'minify' in inc['parameter'][1:]
quote = 'quote' in inc['parameter'][1:]
# Create a new stack for the included file
Expand Down Expand Up @@ -235,4 +235,4 @@ def build(self):
builder = JuiceBuilder()
builder.build()
except Exception as e:
print 'Fatal error: %s.' % e
print 'Fatal error: %s.' % e

0 comments on commit 9f0b878

Please sign in to comment.