Package org.rendersnake.site

Source Code of org.rendersnake.site.IndexPage

package org.rendersnake.site;

import java.io.IOException;

import org.rendersnake.HtmlCanvas;
import org.rendersnake.Renderable;
import org.rendersnake.site.components.IndexContent;

/**
*
*
* @author ernestmicklei
*/
public class IndexPage implements Renderable {

    public void renderOn(HtmlCanvas html) throws IOException {
       
        html.getPageContext().set("title","renderSnake - Home");
       
        // Use a separate component for rendering the index content
        html.render(new SiteLayoutWrapper(new IndexContent()));
    }
}
TOP

Related Classes of org.rendersnake.site.IndexPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.