public class TagliatelleContentHandler extends Object implements ContentHandler
This handler expects Tagliatelle as template language. The name of this handler is pasta the expected file extension is .pasta
Modifier and Type | Field and Description |
---|---|
static String |
PASTA
Contains the name (type) of this handler
|
Constructor and Description |
---|
TagliatelleContentHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
generate(Generator generator,
OutputStream out)
Generates the appropriate output if the settings of the generator match.
|
int |
getPriority() |
protected Template |
getTemplate(Generator generator) |
public static final String PASTA
protected Template getTemplate(Generator generator) throws CompileException
CompileException
public boolean generate(Generator generator, OutputStream out) throws Exception
ContentHandler
generate
in interface ContentHandler
generator
- the generate settings given by the callerout
- the output stream used to write the generated content toException
- if an error occurs while generating contentpublic int getPriority()
getPriority
in interface sirius.kernel.di.std.Priorized
Copyright © 2018. All rights reserved.