Package ys.wikiparser

Class MarkdownCustomInputs


  • public class MarkdownCustomInputs
    extends Object
    • Constructor Detail

      • MarkdownCustomInputs

        public MarkdownCustomInputs()
    • 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
      • renderCustomInHtml

        public static String renderCustomInHtml​(String inputText,
                                                String customInputName)
        if there is a template matching the custom input name in the custom template path, render it
        Parameters:
        inputText -
        customInputName -
        Returns:
        the rendered html