Package ys.wikiparser
Class MarkdownCustomInputs
- java.lang.Object
-
- ys.wikiparser.MarkdownCustomInputs
-
public class MarkdownCustomInputs extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_CUSTOM_TEMPLATE_PATHstatic StringTEMPLATE_SUFFIXstatic StringVAR_CLOSEstatic StringVAR_OPEN
-
Constructor Summary
Constructors Constructor Description MarkdownCustomInputs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>extractParams(String inputText)Extract the parameters from the input textstatic StringfillTemplate(String template, Map<String,String> model)Fill the template with the modelstatic StringrenderCustomInHtml(String inputText, String customInputName)if there is a template matching the custom input name in the custom template path, render it
-
-
-
Field Detail
-
PROPERTY_CUSTOM_TEMPLATE_PATH
public static final String PROPERTY_CUSTOM_TEMPLATE_PATH
- See Also:
- Constant Field Values
-
TEMPLATE_SUFFIX
public static final String TEMPLATE_SUFFIX
- See Also:
- Constant Field Values
-
VAR_OPEN
public static final String VAR_OPEN
- See Also:
- Constant Field Values
-
VAR_CLOSE
public static final String VAR_CLOSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractParams
public static Map<String,String> extractParams(String inputText)
Extract the parameters from the input text- Parameters:
inputText-- Returns:
- the parameters
-
fillTemplate
public static String fillTemplate(String template, Map<String,String> model)
Fill the template with the model- Parameters:
template-model-- Returns:
- the filled template
-
-