Ah, yes. I see. The guard file must be running inside a namespace, so you have to break out to the top level.
But the name of the method is still convert_file ;)
-Dan
On Sun, Aug 13, 2017 at 3:05 AM, denis [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I solve my problem using:
guard :asciidoctor do
#watch(/^.+(\.adoc)$/)
watch(/^.+(\.adoc)$/) {|m| ::Asciidoctor.render_file(m[0], :in_place => true, :to_dir => 'html') }
#watch(/^.+(\.css)$/)
end
:)
If you reply to this email, your message will be added to the discussion below: