| Template code | Chunk output | |
|---|---|---|
{!-- TO DO: insert layered inheritance example here --}
For now, you will have to click "_[Full Docs]" above.
Theme theme = new Theme();
// fetch template from themes/example.chtml
Chunk html = theme.makeChunk("example");
// Insert business logic here.
// Normally you write a lot of html.set("this","that") calls here.
StreamWriter out = getStreamWriter();
html.render( out );
///// or, return the rendered template as a string
// return html.toString();
|
|
For now, you will have to click "Full Docs" above.
For now, you will have to click "Full Docs" above.
|