Skip to content

Commit 38e1362

Browse files
committed
Embed ruby script: rename variables for clarity
1 parent 28127e2 commit 38e1362

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

templatescompiler/erbrenderer/template_evaluation_context.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ def render(src_path, dst_path)
190190
end
191191

192192
if $0 == __FILE__
193-
context_path, src_path, dst_path = *ARGV
193+
json_context_path, erb_template_path, rendered_template_path = *ARGV
194194

195-
context_hash = JSON.load(File.read(context_path))
195+
context_hash = JSON.load(File.read(json_context_path))
196196
context = TemplateEvaluationContext.new(context_hash)
197197

198198
renderer = ERBRenderer.new(context)
199-
renderer.render(src_path, dst_path)
199+
renderer.render(erb_template_path, rendered_template_path)
200200
end

0 commit comments

Comments
 (0)