Created
March 31, 2010 02:04
-
-
Save matehat/349843 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: (file) -> | |
@test file, => | |
file.group: @name | |
@getPreparedContent file, => | |
@resolveDependencies file, => | |
@emit "resolvedDependencies", file | |
@backend.set file, (err) => | |
sys.puts "Could not cache file $file.path" if err | |
@emit "cachedFile", file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: (file) -> | |
defer @test file | |
file.group: @name | |
defer @getPreparedContent file | |
defer @resolveDependencies file | |
@emit "resolvedDependencies", file | |
err: defer @backend.set file | |
sys.puts "Could not cache file $file.path" if err | |
@emit "cachedFile", file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment