Module colesico.framework.pebble
Class T9nDictionaryParser
- java.lang.Object
-
- colesico.framework.pebble.internal.T9nDictionaryParser
-
- All Implemented Interfaces:
com.mitchellbosecke.pebble.tokenParser.TokenParser
public final class T9nDictionaryParser extends java.lang.Object implements com.mitchellbosecke.pebble.tokenParser.TokenParserTranslation dictionary loader.Loads dictionary to template scoped variable. Loaded dictionary my be used by t9n filter. Usage examples:
{% t9nDictionary "dictionary/base/path" %} - loads dictionary to 'messages' variable {% t9nDictionary "dictionary/base/path" "myName" %} - loads dictionary to 'myName' variable
- Author:
- Vladlen Larionov
- See Also:
T9nFilter
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_DICT_NAME
-
Constructor Summary
Constructors Constructor Description T9nDictionaryParser(colesico.framework.translation.TranslationKit translationKit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTag()com.mitchellbosecke.pebble.node.RenderableNodeparse(com.mitchellbosecke.pebble.lexer.Token token, com.mitchellbosecke.pebble.parser.Parser parser)
-
-
-
Field Detail
-
DEFAULT_DICT_NAME
public static final java.lang.String DEFAULT_DICT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTag
public java.lang.String getTag()
- Specified by:
getTagin interfacecom.mitchellbosecke.pebble.tokenParser.TokenParser
-
parse
public com.mitchellbosecke.pebble.node.RenderableNode parse(com.mitchellbosecke.pebble.lexer.Token token, com.mitchellbosecke.pebble.parser.Parser parser) throws com.mitchellbosecke.pebble.error.ParserException- Specified by:
parsein interfacecom.mitchellbosecke.pebble.tokenParser.TokenParser- Throws:
com.mitchellbosecke.pebble.error.ParserException
-
-