This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Middleman - Inline SVG Helper | |
# ------------------------------------------------------------------------------ | |
# 1. Save this file at `[project_root]/helpers/image_helpers.rb` | |
# 2. Restart your local Middleman server if it's running | |
# 3. Embed SVG files into your template files like so: | |
# | |
# <%= inline_svg("logo"); %> assuming logo.svg is stored at source/assets/icons/inlined/logo.svg | |
# | |
# The helper also allows for CSS classes to be added: | |
# |