Package groovy.text

# Interface Template

public interface Template
A template is a block of text with an associated binding that can be output to a writer or evaluated to a string.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Writable`
  `make()`
  Creates a writable view of this template using an empty binding.
  `Writable`
  `make(Map binding)`
  Creates a writable view of this template using the supplied binding.

- ## Method Details

  - ### make

    Writable make()
    Creates a writable view of this template using an empty binding.
    Returns:
      a writable object that renders this template

  - ### make

    Writable make(Map binding)
    Creates a writable view of this template using the supplied binding.
    Parameters:
      `binding` - values available to template expressions; may be `null` if the implementation permits it
    Returns:
      a writable object that renders this template with the given binding