Code example for CharSource

Methods: read

0
 
    public Template compile( final CharSource source )
    { 
        try 
        { 
            return this.compiler.compile( source.read() );
        } 
        catch ( final IOException e )
        { 
            throw Throwables.propagate( e );
        } 
    } 
 
    public static MustacheCompiler getInstance() 
    { 
        return INSTANCE;
    } 
}