lib/spontaneous/render/preview_renderer.rb in spontaneous-0.1.0.alpha1 vs lib/spontaneous/render/preview_renderer.rb in spontaneous-0.2.0.alpha1
- old
+ new
@@ -10,9 +10,15 @@
template = preview_renderer.render_file(content.template(format), content, format, params)
result = request_renderer.render_string(template, content, format, params)
result
end
+
+ def render_string(template_string, content, format=:html, params = {})
+ template = preview_renderer.render_string(template_string, content, format, params)
+ result = request_renderer.render_string(template, content, format, params)
+ result
+ end
end # PreviewRenderer
end # Render
end # Spontaneous