app/assets/templates에있는 핸들 바 템플릿을 사전 컴파일하는 PlayFramework 2.1 용 SBT 플러그인을 작성하려고합니다. 완료 될 때 나는이 플러그인을 공유 할 것이다. 나는이 구절을 찾았는데 조금 오래되었다는 것을 http://eng.netwallet.com/2012/04/25/emberhandlebars-template-precompilation-with-play/으로 알았지 만 Play에 적응하는 데 아무런 문제가 없었습니다! 2.1. Playframework 2.1 ember 핸들 바를 미리 컴파일
은 그럼 간단한 템플릿 파일을 컴파일하려고했으나 SBT는 실패했습니다 다음 라인 3309에서ember: processing template test
[error] /.../templates/test.handlebars: Compilation error[unexpected exception during Ember compilation (file=/.../templates/test.handlebars, options=List(), ember=ember-1.0.0-pre.4.js): org.mozilla.javascript.EvaluatorException: missing name after . operator (ember-1.0.0-pre.4.js#3309)]
[error] (MyProject/*:play-copy-assets) @6dap83075: Compilation error in /.../templates/test.handlebars:null
[error] (MyProject/compile:resources) @6dap83075: Compilation error in /.../templates/test.handlebars:null
엠버-1.0.0-pre.4.js 분명히하는 휘발성 키워드를 가지고 Rhino에서 예약 됨.
나는이 문제를 해결할 방법을 알고 있는지 궁금해하는 이유는 무엇입니까? 나는 지금 5 * 해결책을 찾고 있지 않다. 가장 간단한 핸들 바 템플릿에서 작업 할 수있는 합리적인 기회가있는 솔루션 (사용자 정의 ember.js를 사용하는 것과 같은 빠르고 해로운 해킹도 가능)이 작동하고 기능이 있고 SBT 플러그인이 없으면 연마하는 것에 대해 걱정할 것입니다.
미리 감사드립니다.
하면 쉽게 문제를 재현하는 코드를 게시 할 수 있습니다 참조하십시오? – Schleichardt
이 프로젝트를 계속 하시겠습니까? 나는 그것을 사용하는 것에 흥미가있을 것이다. –