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.

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    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 "/".
      prefix of path
    • suffix

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