Embed asciidoc into Haml
Posted by fleurystephane on
URL: https://discuss.asciidoctor.org/Embed-asciidoc-into-Haml-tp683.html
Hello!
I'd like to insert asciidoc into haml file, and more exactly give awestruct object value to asciidoc file.
.For example
---
.span6
:asciidoc
:basurl: #{site.base_url}
---
But, I get an error :
asciidoctor: WARNING: include file has illegal reference to ancestor of jail, auto-recovering
ERROR: Failed to render: /sav/syntheseBatchs.adoc
StandardError: ERROR: Failed to render: /_layouts/base.html.haml at line 17
Haml::Error: Filter "asciidoc" is not defined.
C:/Progra~1/Developpements/jruby-bin-1.7.4/jruby-1.7.4/lib/ruby/gems/shared/gems/haml-4.0.3/lib/haml/compiler.rb:270:in `compile_filter'
How adding asciidoc filter in haml ?
Thanks
Stéphane