Class: Thymeleaf::Template
- Inherits:
-
Struct
- Object
- Struct
- Thymeleaf::Template
- Defined in:
- lib/thymeleaf/template.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#template_markup ⇒ Object
Returns the value of attribute template_markup.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
8 9 10 |
# File 'lib/thymeleaf/template.rb', line 8 def context @context end |
#template_markup ⇒ Object
Returns the value of attribute template_markup
8 9 10 |
# File 'lib/thymeleaf/template.rb', line 8 def template_markup @template_markup end |
Instance Method Details
#render ⇒ Object
9 10 11 |
# File 'lib/thymeleaf/template.rb', line 9 def render do_render template_markup end |
#render_file ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/thymeleaf/template.rb', line 13 def render_file template_markup_uri = Thymeleaf.configuration.template_uri(template_markup) template_file_open template_markup_uri do |template| do_render template end end |