2
我有一個超薄部分小部件。該小部件有共同的元素,然後我想屈服的一些自定義內容。什麼是正確的語法?這是我認爲會起作用,但沒有。超薄部分有收益
的Widget部分
.container
.title= title
.content
== yield
頁
.page
= render partial: "widget_partial", locals: { title: "Content 1" } do
div Some really awesome content.
= render partial: "widget_partial", locals: { title: "Content 2" } do
span Different but also awesome content.