Sha256: 9f49ca87b90251db9c58a4a98f1ae4b388c87976d4facfe5b2f457adce2fb681
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
module Mathjax module Rails module ViewHelpers def mathjax_tag(opt={}) if false==opt[:config] additional = '' else opt[:config] = 'TeX-AMS_HTML-full.js' if !opt[:config] additional = "?config=#{opt[:config]}" end "<script src=\"#{mathjax_path(:uri=>'MathJax.js')}#{additional}\" type=\"text/javascript\"></script>".html_safe end end end end ActionView::Base.send :include, Mathjax::Rails::ViewHelpers
Version data entries
5 entries across 5 versions & 1 rubygems