From d009400434aa7b0f13de282638e94879de0b0a28 Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Mon, 28 Nov 2011 06:35:52 +0530 Subject: [PATCH] Issue #114: Added support for relative path in stylus imports --- hyde/ext/plugins/stylus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyde/ext/plugins/stylus.py b/hyde/ext/plugins/stylus.py index b6fb7b7..40807f9 100644 --- a/hyde/ext/plugins/stylus.py +++ b/hyde/ext/plugins/stylus.py @@ -46,9 +46,10 @@ class StylusPlugin(CLTransformer): if not match.lastindex: return '' path = match.groups(1)[0] - afile = File(resource.source_file.parent.child(path)) + afile = File(File(resource.source_file.parent.child(path)).fully_expanded_path) if len(afile.kind.strip()) == 0: afile = File(afile.path + '.styl') + ref = self.site.content.resource_from_path(afile.path) if not ref: