Method: Cubicle::Aggregation::AggregationView#expand_template

Defined in:
lib/cubicle/aggregation/aggregation_view.rb

#expand_template(template) ⇒ Object



33
34
35
36
37
38
# File 'lib/cubicle/aggregation/aggregation_view.rb', line 33

def expand_template(template)
  while (template =~ /\{\{\w+\}\}/)
    template = Mustache.render(template,self)
  end
  template
end