Skip to content

Instantly share code, notes, and snippets.

@jeshan
Created October 5, 2015 18:43
Show Gist options
  • Save jeshan/1e62b88e935f70b900a8 to your computer and use it in GitHub Desktop.
Save jeshan/1e62b88e935f70b900a8 to your computer and use it in GitHub Desktop.
public Body div() {
divs.add(Div.create(this));
return this;
}
public Body heading(Heading.Level level, String content) {
Heading heading = Heading.create(level, content, this);
headers.get(level).add(heading);
return this;
}
public Body paragraph(String content) {
paragraphs.add(content);
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment