Re: Embed asciidoc into Haml
Posted by
LightGuardjp on
URL: https://discuss.asciidoctor.org/Embed-asciidoc-into-Haml-tp683p684.html
Which version of haml, and do you have the haml-compat gem if you're using haml4?
Most of the filters for other gems are in the compat gem. I believe there's one for Asciidoctor is there, but I'm not 100% sure.
I know you can do this in slim without any extra gems.
Sent from my iPhone
On Oct 3, 2013, at 7:43, "fleurystephane [via Asciidoctor :: Discussion]" <
[hidden email]> wrote:
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