Class RockerEngine

java.lang.Object
io.micronaut.views.rocker.RockerEngine

public class RockerEngine extends Object
Engine for Rocker templates.
Since:
1.3.2
Author:
Sam Adams
  • Constructor Details

    • RockerEngine

      public RockerEngine(String path, String extension)
      Creates a new instance of the rocker engine.
      Parameters:
      path - The base path templates are stored under
      extension - The file extension used by the templates
  • Method Details

    • exists

      public boolean exists(String viewName)
      Checks to see if a template exists.
      Parameters:
      viewName - The name of the template
      Returns:
      True if the template exists, false otherwise
    • template

      public com.fizzed.rocker.BindableRockerModel template(String viewName)
      Loads the template.
      Parameters:
      viewName - The name of the template
      Returns:
      The template