lib/asciidoctor-revealjs.rb in asciidoctor-revealjs-1.0.1 vs lib/asciidoctor-revealjs.rb in asciidoctor-revealjs-1.0.2
- old
+ new
@@ -1,2 +1,7 @@
-require 'asciidoctor' unless defined? Asciidoctor::Converter
-require_relative 'asciidoctor-revealjs/converter'
+if RUBY_ENGINE == 'opal'
+ require 'asciidoctor-revealjs/converter'
+ `require('asciidoctor-template.js')`
+else
+ require 'asciidoctor' unless defined? Asciidoctor::Converter
+ require_relative 'asciidoctor-revealjs/converter'
+end