我正在尝试让车把 dateFormat 工作。目前我收到错误com.github.jknack.handlebars.HandlebarsException: /hbs/doc/docheader.hbs:6:12: could not find helper: 'dateFormat'
当我打电话时{{dateFormat doc.documentDate format="yyyy-MM-dd"}}
。
这是我相关的 gradle 配置:
compile 'pl.allegro.tech.boot:handlebars-spring-boot-starter:0.2.14'
compile 'com.github.jknack:handlebars-helpers:4.0.6',
'com.github.jknack:handlebars-jackson2:4.0.6',
'com.github.jknack:handlebars-humanize:4.0.6',
'com.github.jknack:handlebars-markdown:4.0.6'
据我所知,字符串助手应该包含在 handlebars-jackson2:4.0.6 中。