0
watchr을 사용하여 스타일러스와 haml 파일을보고 컴파일하지만 watchr 명령을 실행하자마자 오류 메시지가 나타납니다 : . 내 watchr.rb 파일은 내가이 문제를 해결하려면 어떻게해야이Watchr : 정의되지 않은 메소드`watch 'for main : Object
def compile_haml
%x[haml index.haml ../index.html]
end
def compile_stylus
%x[stylus style.styl -o ../style.css]
end
watch("index.haml") { |x|
%x[haml index.haml ../index.html]
}
watch("style.styl") { |x|
%x[stylus style.styl -o ../style.css]
}
처럼 보인다? 그것을 고칠 수 있습니까?
이 스크립트를 어떻게 실행 했습니까? – avellable
node.js 명령 줄을 'watchr watchr.rb' 명령과 함께 사용했습니다. @avellable – ALEX