@Retention(RUNTIME)
@Target({MODULE,PACKAGE,TYPE,ANNOTATION_TYPE})
@Documented
public @interface JStachePath
Configure how the paths of templates map to actual source resources.
Order of path config lookup and precedence is as follows:
- type annotated with JStache and this annotation.
- enclosing class (of type annotated with JStache) with this annotation with inner to outer order.
- package annotated with this annotation.
- module annotated with this annotation.
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
-
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:
- ""
-