All Downloads are FREE. Search and download functionalities are using the official Maven repository.

vertx-java.template.enumCheatsheet.templ Maven / Gradle / Ivy

There is a newer version: 4.5.10
Show newest version
@comment{'A template for Java enums that creates cheatsheets doc'}

@includeNamed{'common-lib.templ'}

@code{

  /**
   * Render a tag link to an its plain value, this function is used as parameter of the
   * renderDocToHtml function when it needs to render tag links.
   */
  def renderTagLinkToHtml(tag) {
    return tag.name;
  }
}

[[@{type.simpleName}]]\n
== @{type.simpleName}\n
\n
@if{doc != null}
++++\n
@{renderDocToHtml('', doc, renderTagLinkToHtml)}
++++\n
'''\n
@end{}
\n
[cols=">25%,75%"]\n
[frame="topbot"]\n
|===\n
^|Name | Description\n
@foreach{value:values}
	|[[@{value.identifier}]]`@{value.identifier}`
	|@if{value.doc != null}\n
	+++\n
	@{renderDocToHtml('', value.doc, renderTagLinkToHtml).trim()}\n
	+++\n
	@else{}-\n@end{}
@end{}
|===\n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy