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.7.1 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.7.0 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.6.4 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.6.3 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.6.2 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.6.1 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.6.0 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.10 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.9 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.8 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.7 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.6 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.5 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.4 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.3 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.2 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.1 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.5.0 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.9 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.8 lib/kuber_kit/preprocessing/text_preprocessor.rb