Skip to content

Instantly share code, notes, and snippets.

@ericf
Created December 7, 2010 21:42
Show Gist options
  • Select an option

  • Save ericf/732468 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/732468 to your computer and use it in GitHub Desktop.
protected void writeDocument(HtmlContentWriter html) throws IOException {
HtmlContentWriter head, body, content;
head = html.head();
head.title().text("Tips You Made at TipTheWeb");
head.link(REL_STYLESHEET, TYPE_TEXT_CSS, relHref(getWebutils().getLocation("reset.css", "base.css")));
head.link(REL_STYLESHEET, TYPE_TEXT_CSS, relHref(
getResources().getLocation(
"style/style.css",
"style/chrome.css",
"style/content.css",
"target/target.css",
"tip/tip.css",
"tiplist/tiplist.css",
"amountsuggest/amountsuggest.css",
"createtip/createtip.css",
"windows/tips/tips.css")));
body = html.body(CLASS.att("tips"));
renderChrome(body, true);
content = body.div(ID.att("content")).div(CLASS.att("section layout"));
writeMain(content.div(ID.att("main")));
writeSidebar(content.div(ID.att("sidebar")));
renderYUI3Seed(body);
renderYUI3Instance(body, TipsAppYUI3Modules.TIPS_WINDOW, "Y.TTW.TipsWindow");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment