Annotation Interface JStachePath


Configure how the paths of templates map to actual source resources. Order of path config lookup and precedence is as follows:
  1. type annotated with JStache and this annotation.
  2. enclosing class (of type annotated with JStache) with this annotation with inner to outer order.
  3. package annotated with this annotation.
  4. module annotated with this annotation.
After this lookup is done then the lookup is repeated using JStacheConfig.pathing() thus using this annotation directly on an element takes precedence over JStacheConfig.

If multiple annotations are found the first one is picked and there is no combining of settings. See JStacheConfig for general config resultion.

Author:
agentgt
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Will prefix the path.
    Suffix the path.
  • Element Details

    • prefix

      Will prefix the path. If you are mapping to a directory remember to end the prefix with a "/".
      Returns:
      prefix of path
      Default:
      ""
    • suffix

      Suffix the path. A common use case is to suffix with ".mustache".
      Returns:
      suffix of path
      Default:
      ""