嗨,我是 scalate/scaml 的菜鸟(我标记了 haml,因为 scaml 和 haml 相似)。我有一些看起来像这样的模板:
-@ var customer : com.x.model.Customer
!!!
%html
%body
%p Contact:
%a{:href => 'mailto:#{customer.email}'}=customer.contact
%p 行被标记为以下错误:
org.fusesource.scalate.InvalidSyntaxException: Illegal nesting: content can't be given on the same line as html element or nested within it if the tag is closed at 16.17