Skip to content
This repository was archived by the owner on Sep 30, 2018. It is now read-only.

Commit 6da369e

Browse files
committedDec 23, 2013
Add TemplateView#partial() for rendering partial templates
1 parent 93f7767 commit 6da369e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎opal/vienna/template_view.rb

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def render
2525
after_render
2626
end
2727

28+
def partial(name)
29+
Template[name].render(self)
30+
end
31+
2832
def _render_template(template)
2933
@output_buffer = OutputBuffer.new
3034
instance_exec @output_buffer, &template.body

0 commit comments

Comments
 (0)
This repository has been archived.