org.rythmengine.internal.dialect
Class SimpleRythm
java.lang.Object
org.rythmengine.internal.dialect.DialectBase
org.rythmengine.internal.dialect.SimpleRythm
- All Implemented Interfaces:
- IDialect
- Direct Known Subclasses:
- BasicRythm, ToString
public class SimpleRythm
- extends DialectBase
Simple Rythm mode is a subset of Rythm mode which has most Rythm feature except the template layout/extend features:
- Extends a layout template or declare template section
- Render sub template sections/content
- @Designate inti code section to be put into parent template
- Include another template at parsing time
- Set/get template variable to be passed to parent template
ID
public static final String ID
- See Also:
- Constant Field Values
INSTANCE
public static final IDialect INSTANCE
SimpleRythm
protected SimpleRythm()
id
public String id()
- Description copied from interface:
IDialect
- Return the ID of the dialect, might be something like "rythm" or "play-groovy" etc.
- Returns:
- dialect id
a
public String a()
- Description copied from interface:
IDialect
- Return the primary caret marker, e.g. "#" in play-groovy, "@" in rythm and "`" in japid. To escape the
marker repeat the marker twice, e.g. "@@", "##", "``"
- Returns:
- the primary caret
buildInParserClasses
protected Class<?>[] buildInParserClasses()
- Specified by:
buildInParserClasses in class DialectBase
isMyTemplate
public boolean isMyTemplate(String template)
- Specified by:
isMyTemplate in interface IDialect- Overrides:
isMyTemplate in class DialectBase
begin
public void begin(IContext ctx)
- Specified by:
begin in interface IDialect- Overrides:
begin in class DialectBase
Copyright © 2014. All Rights Reserved.