Tôi đã có Haml/ria mép này mẫu:Moustache và Haml
{{#data}}
ok
{{#items}}
{{#item}}
%b ID: {{id}}
{{/item}}
{{/items}}
{{/data}}
Và tôi đã có Illegal nesting: nesting within plain text is illegal
Lỗi.
tôi render nó trong Sinatra
Mustache.render(haml(:index), hash)
Tôi đang bối rối về haml của bạn. {{Có nghĩa là gì? – jaydel
nó là moustache :) http://mustache.github.com/ – fl00r