Sha256: 38b3ef980ab0c1d327e9d486755da7b7b20a19a8f569cccb397d6c9c81fade20

Contents?: true

Size: 574 Bytes

Versions: 9

Compression:

Stored size: 574 Bytes

Contents

class KuberKit::TemplateReader::Renderer
  include KuberKit::Import[
    "core.template_store",
    "preprocessing.text_preprocessor",
    template_reader: "template_reader.reader"
  ]


  Contract KuberKit::Shell::AbstractShell, Symbol, KeywordArgs[
    context_helper: KuberKit::Core::ContextHelper::AbstractHelper
  ] => String
  def call(shell, template_name, context_helper:)
    template = template_store.get(template_name)
    template_text = template_reader.read(shell, template)
    text_preprocessor.compile(template_text, context_helper: context_helper)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuber_kit-1.3.8 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.3.7 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.1.8 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.3.6 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.1.7 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.3.5 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.3.4 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.1.6 lib/kuber_kit/template_reader/renderer.rb
kuber_kit-1.3.3 lib/kuber_kit/template_reader/renderer.rb