Sha256: 568915bdc3d5bc1ed0c4af0a678007fa87fed58efdf6b307bc42610a2b32a485
Contents?: true
Size: 487 Bytes
Versions: 18
Compression:
Stored size: 487 Bytes
Contents
module Terraspace::Compiler::Erb class Render def initialize(mod, src_path) @mod, @src_path = mod, src_path end def build context = Context.new(@mod) if @mod.resolved RenderMePretty.result(@src_path, context: context) else # Replace contents so only the `output` and `depends_on` are evaluated temp_path = Rewrite.new(@src_path).rewrite RenderMePretty.result(temp_path, context: context) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems