Module: Hyde::DSL::TemplateMethods

Included in:
TemplateContext
Defined in:
lib/hyde/dsl/methods_template.rb

Overview

Common methods for template contexts

Instance Method Summary collapse

Instance Method Details

#import(filepath) ⇒ Object

Import a template part



11
12
13
# File 'lib/hyde/dsl/methods_template.rb', line 11

def import(filepath)
  @parent_template.import(file(filepath)).run
end