Class HTMLTag

java.lang.Object
org.javalite.activeweb.HTMLTag
All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class HTMLTag extends Object implements freemarker.template.TemplateDirectiveModel
Use this tag to embed a snippet of HTML into an OpenAPI document. It allows to write plain HTML in a separate file, and use an HTML editor. Note that the file fill be searched at the location of apiLocation plugin parameter value, configured in the pom.xml file.

Usage:

     {
        "description": "<@html file="table1.html" />"
     }
 
  • Field Summary

    Fields inherited from interface freemarker.template.TemplateModel

    NOTHING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute​(freemarker.core.Environment environment, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HTMLTag

      public HTMLTag()
  • Method Details

    • execute

      public void execute(freemarker.core.Environment environment, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws IOException, freemarker.template.TemplateModelException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      IOException
      freemarker.template.TemplateModelException