首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 生成HTML流畅的界面库

生成HTML流畅的界面库

  • 资源大小:288.06 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: html 界面 生成 流畅

资 源 简 介

Hypirinha is a Java library for generating HTML. Hypirinha follows the fluent interface style, whereby several method calls can be chained together as single statement to achieve the desired result. Example ``` import static org.hypirinha.html.AttributeFactory.*; import static org.hypirinha.html.ElementFactory.*; import org.hypirinha.html.elements.*; import org.hypirinha.html.output.PrintAdapter; public class HelloWorldCommandLine { public static void main(String[] args) { Html html = html(); html.head().link(rel("stylesheet"), href("styles.css")); html.body().p(classs("greeting")).text("Hello World"); new PrintAdapter().print(html, System.out); } } ``` produces on stdout:
VIP VIP
0.176039s