如何测试Sass函数是否存在?
我有一个使用自定义Sass函数的Sass包.但是,在Ruby之外(例如libsass),可能无法定义该函数并提供回退:
url: if($bootstrap-sass-asset-helper, twbs-font-path('name.eot'), 'name.eot')
我想$bootstrap-sass-asset-helper根据是否twbs-font-path声明将值设置为true或false .
$bootstrap-sass-asset-helper
twbs-font-path