templates/slim/helpers.rb in asciidoctor-revealjs-1.0.2 vs templates/slim/helpers.rb in asciidoctor-revealjs-1.0.3
- old
+ new
@@ -25,9 +25,13 @@
else
str
end
end
+ def to_boolean val
+ val && val != 'false' && val.to_s != '0' || false
+ end
+
end
# More custom functions can be added in another namespace if required
#module Helpers
#end