Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 haml 中有一个表,我希望表头的 id 能够根据 ruby 变量@title_id 进行更改。在伪代码中,这就是我想要完成的:
%th.@title_id
这应该是这样的:
%th{:id => @title_id}