class GettextI18nRails::HamlParser
Public Class Methods
convert_to_code(text)
click to toggle source
# File lib/gettext_i18n_rails/haml_parser.rb, line 9 def self.convert_to_code(text) case @library_loaded when "haml" Haml::Engine.new(text).precompiled() when "hamlit" Hamlit::Engine.new.call(text) end end
extension()
click to toggle source
# File lib/gettext_i18n_rails/haml_parser.rb, line 5 def self.extension "haml" end
libraries()
click to toggle source
# File lib/gettext_i18n_rails/haml_parser.rb, line 18 def self.libraries ["haml", "hamlit"] end