lib/comatose/text_filters.rb
# Process the text with using the specified context
Process the text with using the specified context
Process the text with using the specified context
def process_text(text, context, processor=TextFilters.default_processor)
      processed_text = nil
      case
      when processor == :erb
        processed_text = process_with_erb(text, context)
      when processor == :liquid
        processed_text = process_with_liquid(text, context)
      else
        raise "Unknown Text Processor '#{processor.to_s}'"
      end
      return processed_text
    end
def process_text ( text , context , processor = TextFilters . default_processor ) processed_text = nil case when processor == :erb processed_text = process_with_erb ( text , context ) when processor == :liquid processed_text = process_with_liquid ( text , context ) else raise "Unknown Text Processor '#{processor.to_s}'" end return processed_text end
Process the text with using the specified context
Process the text with using the specified context
#Comatose.logger.debug "text before process: #{text}" #Comatose.logger.debug "text after process: #{processed_text}"
text
<not_specific>
context
<not_specific>
processor
<not_specific>
default_processor
<not_specific>