Open kaldrenon opened 9 years ago
Your syntax is correct, but the helper method is defined for Rails' ActionView::Base
, so it's not visible in Sinatra's templating system. It's not Slim's fault.
I've tried using "awesome inspect" instead like so (mimicking your example):
@summaries.ai(html: true)
...but that fails too, albeit for a different reason (#137). I've found a dirty fix (using an extra dependency I'm already using) so I'll report it there.
== ap @summaries, html: true
In my Slim view I have
Per https://github.com/michaeldv/awesome_print#actionview-convenience-method I hoped this would render the output as HTML inside the view, but instead it printed the object's contents as HTML into the console.
Is my syntax incorrect, or does
awesome_print
not support Slim?