Sha256: dad11e5f0deb87246a3af514baff1ad1d8457a927489f6e26a409cd569e4fb93
Contents?: true
Size: 757 Bytes
Versions: 217
Compression:
Stored size: 757 Bytes
Contents
// Mincer asset helper functions // // This must be imported into a .css.ejs.scss file. // Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation. @function twbs-font-path($path) { // do something like following // from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>" // from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>" // or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>" @return "<%- asset_path('#{$path}'.replace(/[#?].*$/, '')) + '#{$path}'.replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>"; } @function twbs-image-path($file) { @return "<%- asset_path('#{$file}') %>"; } $bootstrap-sass-asset-helper: true;
Version data entries
217 entries across 216 versions & 12 rubygems