1
Brunch를 사용하여 Im에 사용자 지정 도우미를 추가했습니다. 이것은 정상적인보기 템플릿에서 훌륭하게 작동하지만 compositeView의 itemView 템플릿에서 helper로 전달 된 변수는 정의되지 않습니다. 도우미가 없으면 템플릿이 잘 컴파일됩니다.handlebars helper : 변수를 전달하지 않음
// Helper
Handlebars.registerHelper 'mny', (val) ->
val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ")
// Example
{{price}} //it works
{{mny price}} //it doesn't