当我有这个 HAML 文件时(Rails 布局)
!!! 5
%html
%head
= stylesheet_link_tag 'admin'
%body
%h1 ADMIN TEST
= yield
当我尝试查看页面时出现以下错误:
Illegal nesting: content can't be both given on the same line as %h1 and nested within it.
是什么赋予了?(错误指向该yield
行)。