public class Themes extends Object
Constructor and Description |
---|
Themes(org.thymeleaf.context.IProcessingContext processingContext)
Constructor, obtains the current theme and locale from the processing
context for code lookups later.
|
Modifier and Type | Method and Description |
---|---|
String |
code(String code)
Looks up and returns the value of the given key in the properties file of
the currently-selected theme.
|
public Themes(org.thymeleaf.context.IProcessingContext processingContext)
processingContext
- the processing context being usedpublic String code(String code)
code
- Key to look up in the theme properties file.Copyright © 2016 The THYMELEAF team. All rights reserved.