Slim 翻译错误语法
Slim Translation error syntax
我正在翻译 Haml-Slim,我在这一行遇到了问题:
modal-alerts data= 'target-url' = new_alert_url.gsub('jusjus.jusjus', 'jusjus'),
'ajax-form' = "false",
'btn-ok' = 'off',
:title = I18n.t('common.get_new_alerts')
错误是:
_alerts_bar_housing.html.slim:9: syntax error, unexpected '=', expecting keyword_end 'ajax-form' = "false", ^
有什么想法吗?
谢谢!
modal-alerts data={'target-url' => new_alert_url.gsub('jusjus.jusjus', 'jusjus'), 'ajax-form' => "false", 'btn-ok' => 'off', 'title' => I18n.t('common.get_new_alerts')}
我正在翻译 Haml-Slim,我在这一行遇到了问题:
modal-alerts data= 'target-url' = new_alert_url.gsub('jusjus.jusjus', 'jusjus'),
'ajax-form' = "false",
'btn-ok' = 'off',
:title = I18n.t('common.get_new_alerts')
错误是:
_alerts_bar_housing.html.slim:9: syntax error, unexpected '=', expecting keyword_end 'ajax-form' = "false", ^
有什么想法吗? 谢谢!
modal-alerts data={'target-url' => new_alert_url.gsub('jusjus.jusjus', 'jusjus'), 'ajax-form' => "false", 'btn-ok' => 'off', 'title' => I18n.t('common.get_new_alerts')}