小编Rya*_*ell的帖子

HAML - “!=”运算符有什么作用?

我现在正在查看一些看似标准的 Haml 代码,但刚刚注意到它以“!=”开头,5 分钟的谷歌搜索未能给我答案:

#What does the '!=' mean? 
!= cache_content_if_not_prefetched(params) do
  -if product_live?
    =render :partial => 'products/product_tile'
  -else
    =render :partial => 'products/unavailable_product_tile'
Run Code Online (Sandbox Code Playgroud)

haml ruby-on-rails

1
推荐指数
1
解决办法
1269
查看次数

标签 统计

haml ×1

ruby-on-rails ×1