HTML生成庫 renderSnake
RenderSnake 是一個輕量級的Java類庫用來通過Java方法生產html頁面,包含4個核心類庫:
- HtmlCanvas , a class that has methods for all HTML 4.01 and HTML5 tags for opening and closing it
- HtmlAttributes, a class that has methods for all existing HTML attributes for setting an attribute value
- Renderable, a interface that is used to create component classes. Each component must implement the method renderOn(HtmlCanvas)
- PageContext, a Map-like object to store any information that is used for rendering a Page.
示例代碼:
canvas.html() .body() .h1().write("RenderSnake")._h1() ._body() ._html()
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!