lib/k_builder/base_builder.rb
# Process content will take any one of the following
#  - Raw content
#  - File based content
#  - Raw template (translated via handlebars)
#  - File base template (translated via handlebars)
#
# Process any of the above inputs to create final content output
#
# @option opts [String] :content Supply the content that you want to write to the file
# @option opts [String] :template Supply the template that you want to write to the file, template will be transformed using handlebars
# @option opts [String] :content_file File with content, file location is based on where the program is running
# @option opts [String] :template_file File with handlebars templated content that will be transformed, file location is based on the configured template_path
Process content will take any one of the following
Raw content
File based content
Raw template (translated via handlebars)
File base template (translated via handlebars)

Process any of the above inputs to create final content output
Process content will take any one of the following Raw content File based content Raw template ( translated via handlebars ) File base template ( translated via handlebars ) Process any of the above inputs to create final content output
def process_any_content(**opts)
      raw_content = use_content(**opts)
      return raw_content if raw_content
      template_content = use_template(**opts)
      Handlebars::Helpers::Template.render(template_content, opts) unless template_content.nil?
    end
def process_any_content ( ** opts ) raw_content = use_content ( ** opts ) return raw_content if raw_content template_content = use_template ( ** opts ) Handlebars :: Helpers :: Template . render ( template_content , opts ) unless template_content . nil? end
Process content will take any one of the following
 Raw content
 File based content
 Raw template (translated via handlebars)
 File base template (translated via handlebars)
Process content will take any one of the following Raw content File based content Raw template ( translated via handlebars ) File base template ( translated via handlebars )
opts
:template_file File with handlebars templated content that will be transformed, file location is based on the configured template_path
: template_file File with handlebars templated content that will be transformed file location is based on the configured template_path