com.lyncode.jtwig
Class JtwigTemplate

java.lang.Object
  extended by com.lyncode.jtwig.JtwigTemplate

public class JtwigTemplate
extends Object


Constructor Summary
JtwigTemplate(File file)
           
JtwigTemplate(JtwigResource resource)
           
JtwigTemplate(String content)
           
 
Method Summary
 Content compile()
           
 String output(JtwigContext context)
           
 void output(OutputStream outputStream, JtwigContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JtwigTemplate

public JtwigTemplate(JtwigResource resource)

JtwigTemplate

public JtwigTemplate(String content)

JtwigTemplate

public JtwigTemplate(File file)
Method Detail

output

public void output(OutputStream outputStream,
                   JtwigContext context)
            throws ParseException,
                   CompileException,
                   RenderException
Throws:
ParseException
CompileException
RenderException

output

public String output(JtwigContext context)
              throws ParseException,
                     CompileException,
                     RenderException
Throws:
ParseException
CompileException
RenderException

compile

public Content compile()
                throws ParseException,
                       CompileException
Throws:
ParseException
CompileException


Copyright © 2014. All Rights Reserved.