我正在开发Laravel CMS,但我使用pug作为模板而不是刀片,我的问题是如何在pugs模板中使用例如{{ asset() }}或{{ route() }}?
发布于 2020-07-05 09:47:06
您可以这样使用route():
each country in countries
div(
class="
col-md-6
col-lg-4
my-padding-bottom-19
my-filter-object
my-country
"
data-controller="country"
data-country-url-delete = route('countries.destroy', country)
)
.my-frame
.my-padding-bottom-12.my-filter-target
##{ country.id }: #{country.label}https://stackoverflow.com/questions/58963412
复制相似问题