module Filters def context @context || {} end module_function :context def context=(ctx) @context = ctx end module_function :context= def front_wrap (context[:amf_use_blocks] == true) ? "\\[\\[" : "\{\{" end module_function :front_wrap def end_wrap (context[:amf_use_blocks] == true) ? "\\]\\]" : "\}\}" end module_function :end_wrap end