Skip to content
Browse files

Merge branch 'sass_helpful'

  • Loading branch information...
2 parents dcc2c61 + 1d72526 commit 4aef4cbfcf6522fe68862568f0c7005c3a367e4f @mythmon committed Aug 12, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 wok/contrib/hooks.py
View
12 wok/contrib/hooks.py
@@ -70,9 +70,14 @@ def compile_sass(output_dir):
same directory as the Sass file with the same name and an extension of
.css. For example, foo.scss -> foo.css.
- Hook:
+ Serves as a 'site.output.post' wok hook, e.g., your __hooks__.py file might
+ look like this:
- site.output.post
+ from wok.contrib.hooks import compile_sass
+
+ hooks = {
+ 'site.output.post':[compile_sass]
+ }
Dependencies:
@@ -92,4 +97,5 @@ def compile_sass(output_dir):
try:
subprocess.call(['sass', sass_arg])
except OSError:
- logging.warning('[hook/compile_sass] Could not run SASS hook.')
+ logging.warning('[hook/compile_sass] Could not run SASS ' +
+ 'hook. (Is SASS installed?)')

0 comments on commit 4aef4cb

Please sign in to comment.
Something went wrong with that request. Please try again.