Sha256: 6177423994fe1936e72447f3b7318ae545e61fbf5585f51ef47730c7076167f7
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true module Katex module Rails # Registers KaTeX fonts, stylesheets, and javascripts with Rails. class Engine < ::Rails::Engine initializer 'katex.assets' do |app| %w(fonts javascripts).each do |sub| app.config.assets.paths << root.join('vendor', 'assets', sub).to_s end # Create sprockets versions of katex CSS that use asset-path for # referencing fonts. # One file is a Sass partial and the other one is .css.erb. app.config.assets.paths << root.join( 'vendor', 'assets', 'sprockets', 'stylesheets' ).to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katex-0.1.0 | lib/katex/engine.rb |