<% if(template = section[:template])
  tilt_template = Tilt.new(template.gsub(/\s*/, ''))
  output = tilt_template.render
end %>
<%= output %>
<% 
require 'json'
if(template = section[:template])
  data = {}
  if(json = section[:data])
    data = JSON.parse(json)
  end
  tilt_template = Tilt.new(template.gsub(/\s*/, ''))
  output = tilt_template.render(Object.new, data)
end %>
<%= output %>
Add data rendering to templates
Add data rendering to templates
