Sha256: 33a6ee3498f5165bc535d827f9500245a1c943182cf690b9f6c88b14840cb8ce

Contents?: true

Size: 185 Bytes

Versions: 74

Compression:

Stored size: 185 Bytes

Contents

require 'erb'

class KuberKit::Preprocessing::TextPreprocessor
  def compile(template, context_helper: nil)
    ERB.new(template, nil, '-').result(context_helper&.get_binding)
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
kuber_kit-0.2.9 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.8 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.7 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.6 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.5 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.4 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.3 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.2 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.1 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.2.0 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.1.9 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.1.8 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.1.7 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.1.6 lib/kuber_kit/preprocessing/text_preprocessor.rb