Class: Deplate::Define::MacroNative
- Inherits:
-
Macro
- Object
- Macro
- Deplate::Define::MacroNative
- Defined in:
- lib/deplate/define.rb
Instance Method Summary collapse
Instance Method Details
#setup(text) ⇒ Object
446 447 448 449 450 451 452 453 454 455 456 |
# File 'lib/deplate/define.rb', line 446 def setup(text) setup_template @args['@body'] = text tmpl = Deplate::Template.new(:master => @deplate, :template => @template, :source => @source, :container => self) Deplate::Define.let_variables(@deplate, @args) do @text = tmpl.fill_in(@deplate, :source => @source) end end |