Sha256: c171a7106a3a123ed05bda70a6bc445921fb5b57eff46eee01e43ecd7b99647f
Contents?: true
Size: 362 Bytes
Versions: 5
Compression:
Stored size: 362 Bytes
Contents
require 'nokogiri' module Simplec class NokogiriBuilder class_attribute :default_format self.default_format = Mime[:xml] def self.call(template) "xml = ::Nokogiri::XML::Builder.new(encoding: 'UTF-8') { |xml| #{template.source} }.to_xml;" end end end ActionView::Template.register_template_handler :nokogiri, Simplec::NokogiriBuilder
Version data entries
5 entries across 5 versions & 1 rubygems