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.4.7 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.6 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.5 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.4 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.3 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.2 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.1 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.4.0 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.11 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.10 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.9 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.8 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.7 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.6 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.5 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.4 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.3 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.2 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.1 lib/kuber_kit/preprocessing/text_preprocessor.rb
kuber_kit-0.3.0 lib/kuber_kit/preprocessing/text_preprocessor.rb