Rails 申请中 ruby 的 haml 到 html 转换?

haml to html conversion for ruby on Rails application?

我想最有效地进行搜索引擎优化?以下 HAML 元标记在我在 rails application.is 上的新 ruby 中,如果我将其转换为 HTML 有什么好处?

- content_for :title,       @service ? @service.page_title : " - Legal Compliance"
- content_for :description, @service ? @service.meta_description : "Legal Compliance"
- content_for :keyword,     @service ? @service.meta_keywords : "Legal Compliance"

这就是你想要的?

<% content_for :title,       @service ? @service.page_title : " - Legal Compliance" %>
<% content_for :description, @service ? @service.meta_description : "Legal Compliance" %>
<% content_for :keyword,     @service ? @service.meta_keywords : "Legal Compliance" %>