Class: DrymlRootModule::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/dryml-overrides.rb

Instance Method Summary collapse

Instance Method Details

#wrap_source_with_metadata(content, kind, name, line, *args) ⇒ Object



11
12
13
14
15
# File 'lib/dryml-overrides.rb', line 11

def (content, kind, name, line, *args)
  return content if name.in?(NO_METADATA_TAGS)
  json = DrymlFireMarker.(@template_path, kind, name, line, *args)
  "<!--[dryml]#{json}-->" + content + "<!--[/dryml]-->"
end