stonean/slim — Issue #226: Multilines without backslashes
Author: svoop
Created: 2012-01-24 22:42:45+00:00
State: open

I like to split more complex inputs over several lines like so:

= f.input :locale, \
as: :select, \
collection: I18n.available_locales.map {|l| [I18n.t("activerecord.lists.locales.#{l}"), l] }, \
include_blank: false

Is it possible to teach the parser to understand such multilines without the tailing backslash provided the last character on the line is a comma, for example:

= f.input :locale,
as: :select,
collection: I18n.available_locales.map {|l| [I18n.t("activerecord.lists.locales.#{l}"), l] },
include_blank: false