com.google.sitebricks.compiler
Interface Compilers


public interface Compilers

Author:
Dhanji R. Prasanna (dhanji@gmail com)

Method Summary
 void analyze(Class<?> page)
          Performs static analysis of the given page class to determine some types of errors.
 Renderable compile(Class<?> templateClass)
          Convenience method, use this instead of compileXXX to hide the underlying template type if you dont care what it is.
 Renderable compileFlat(Class<?> page, String template)
           
 Renderable compileFreemarker(Class<?> page, String text)
           
 Renderable compileHtml(Class<?> page, String template)
           
 Renderable compileMvel(Class<?> page, String template)
          Creates a Renderable that can process MVEL templates.
 void compilePage(PageBook.Page page)
           
 Renderable compileXml(Class<?> page, String template)
           
 

Method Detail

compileHtml

Renderable compileHtml(Class<?> page,
                       String template)

compileXml

Renderable compileXml(Class<?> page,
                      String template)

compileFlat

Renderable compileFlat(Class<?> page,
                       String template)

compileMvel

Renderable compileMvel(Class<?> page,
                       String template)
Creates a Renderable that can process MVEL templates. These are not to be confused with Sitebricks templates that *use* MVEL. Rather, this is MVEL's template technology.


compileFreemarker

Renderable compileFreemarker(Class<?> page,
                             String text)

analyze

void analyze(Class<?> page)
Performs static analysis of the given page class to determine some types of errors.


compilePage

void compilePage(PageBook.Page page)

compile

Renderable compile(Class<?> templateClass)
Convenience method, use this instead of compileXXX to hide the underlying template type if you dont care what it is.



Copyright © 2014. All rights reserved.