我尝试使用HAML创建模态,因此我尝试在HAML中创建代码here。我一直收到错误" ExecJS :: ProgramError:错误:您必须将字符串或Handlebars AST传递给Handlebars.precompile。你过去了。"
在我试图弄清楚错误的时候,我去了haml2erb.herokuapp.com看看我是否能找到错误,但之后说我有以下错误:"(第1行,第70栏) :意外的" \"",期待空间,"("或" ["。完全可以说,我很难过这是我的HAML:
.modal.fade#myModal{tabindex: -1, role: "dialog", aria: {labelledby: "myModalLabel", hidden: "true"}}
.model-dialog
.model-content
.model-header
%button.close{type: "button", data-dismiss="modal", aria-hidden="true"} X
%h4.modal-title#myModalLabel Modal title
.modal-body
this is where all the cool stuff goes
.modal-footer
%button.btn.btn-default{type: "button", data-dismiss="modal"} Close
%button.btn.btn-primary{type: "button"} Save changes