In package com.eden.orchid.api.compilers

class com.eden.orchid.api.compilers.TemplateTag

Template Tags are a convenient way to create complex structures from simple markup that may be used anywhere. Tags should be wrapped by the main template language, and are expected to provide a template in templates/tags/ with a filename that matches the name of the TemplateTag. This template is what is rendered when the tag is parsed by the main template language, and any Options may be set with the Tag class and are available within the template. All options can be set as named arguments, but if you want to allow certain parameters to be specified as sequential parameters, you may pass the name of those parameters in the parameters() method.

Constructors

public <init>(kotlin.String, com.eden.orchid.api.compilers.TemplateTag.Type, kotlin.Boolean)

Initialize the Tag with the name which it should be called with in the template. The actual implementation of a Tag should have a single constructor annotated with javax.inject.Inject.

Parameters:

Methods

public open getTabs(): MutableList

Parameters:
  • No parameters
public open setContent(com.eden.orchid.api.compilers.TemplateTag.Tab): Unit

Parameters:
public open setContent(kotlin.String, com.eden.orchid.api.compilers.TemplateTag.Tab): Unit

Parameters:
public open onRender(): Unit

Parameters:
  • No parameters
public open getContent(): String

Parameters:
  • No parameters
public open getContent(kotlin.String): String

Parameters:
  • name: String
public abstract parameters(): Array

The sequential parameters of this function

Parameters:
  • No parameters
public open getNewTab(kotlin.String, kotlin.String): com.eden.orchid.api.compilers.TemplateTag.Tab

Parameters:
  • key: String
  • content: String