Permalink
Browse files

Updated documentation

  • Loading branch information...
1 parent 28a8834 commit 8aeb5befa6ad892a49c22b427d56d293d0e915bb Matt Dean committed with Jul 19, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
2 README.md
@@ -61,13 +61,15 @@ Barista lets you hook into the compilation at several stages. Namely:
* before compilation
* after compilation
* after compilation fails
+* after compilation complete
To hook into these hooks, you can use like so:
* `Barista.before_compilation { |path| puts "Barista: Compiling #{path}" }`
* `Barista.on_compilation { |path| puts "Barista: Successfully compiled #{path}" }`
* `Barista.on_compilation_with_warning { |path, output| puts "Barista: Compilation of #{path} had a warning:\n#{output}" }`
* `Barista.on_compilation_error { |path, output| puts "Barista: Compilation of #{path} failed with:\n#{output}" }`
+* `Barista.on_compilation_complete { puts "Barista: Successfully compiled all files" }`
These allow you to do things such as notify on compilation, automatically

0 comments on commit 8aeb5be

Please sign in to comment.