Class: VertxApex::ThymeleafTemplateEngine
- Inherits:
-
TemplateEngine
- Object
- TemplateEngine
- VertxApex::ThymeleafTemplateEngine
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-apex/src/main/resources/vertx-apex/thymeleaf_template_engine.rb
Overview
A template engine that uses the Thymeleaf library.
Class Method Summary (collapse)
-
+ (::VertxApex::ThymeleafTemplateEngine) create
Create a template engine using defaults.
Instance Method Summary (collapse)
-
- (::VertxApex::ThymeleafTemplateEngine) set_mode(mode = nil)
Set the mode for the engine.
Methods inherited from TemplateEngine
Class Method Details
+ (::VertxApex::ThymeleafTemplateEngine) create
Create a template engine using defaults
20 21 22 23 24 25 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-apex/src/main/resources/vertx-apex/thymeleaf_template_engine.rb', line 20 def self.create if !block_given? return ::VertxApex::ThymeleafTemplateEngine.new(Java::IoVertxExtApexTempl::ThymeleafTemplateEngine.java_method(:create, []).call()) end raise ArgumentError, "Invalid arguments when calling create()" end |
Instance Method Details
- (::VertxApex::ThymeleafTemplateEngine) set_mode(mode = nil)
Set the mode for the engine
29 30 31 32 33 34 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-apex/src/main/resources/vertx-apex/thymeleaf_template_engine.rb', line 29 def set_mode(mode=nil) if mode.class == String && !block_given? return ::VertxApex::ThymeleafTemplateEngine.new(@j_del.java_method(:setMode, [Java::java.lang.String.java_class]).call(mode)) end raise ArgumentError, "Invalid arguments when calling set_mode(mode)" end |