7
HAML 템플릿에 대해이 도우미가 잘못되었습니다. 이 같은haml_tag가 Haml 템플릿에 직접 출력합니다.
haml_tag outputs directly to the Haml template.
Disregard its return value and use the - operator,
or use capture_haml to get the value as a String.
템플릿이 호출 display_event : 나는 정기적으로 마크 업을 사용하는 경우
- @events.each do |event|
= display_event(event)
는 다음
%li.fooclass
%b Foo
%i Bar
으로 확장 할
def display_event(event)
event = MultiJson.decode(event)
markup_class = get_markup_class(event)
haml_tag :li, :class => markup_class do
haml_tag :b, "Foo"
haml_tag :i, "Bar"
end
end
이
오류입니다