We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
item or @item is not available in new Nanoc::Filter.define syntax
item
@item
Nanoc::Filter.define
item and @item should be available using this syntax.
This works currently:
class IcalFilter < Nanoc::Filter identifier :ical def run(_content, _params = {}) cal = Icalendar::Calendar.new cal.add_event(event_for(item)) cal.to_ical end end
This should work as well:
Nanoc::Filter.define(:ical) do |_content, _params| cal = Icalendar::Calendar.new cal.add_event(event_for(item)) cal.to_ical end
The text was updated successfully, but these errors were encountered:
Merge pull request #934 from nanoc/gh-932-filter-define-assigns
74aafea
Fix assigns in filters defined with Filter.define
Fixed in #934.
Sorry, something went wrong.
No branches or pull requests
Summary
item
or@item
is not available in newNanoc::Filter.define
syntaxExpected behavior
item
and@item
should be available using this syntax.Example
This works currently:
This should work as well:
The text was updated successfully, but these errors were encountered: