juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject incubator-juneau-website git commit: Add HtmlDocSerializer example to about page.
Date Mon, 31 Oct 2016 16:49:35 GMT
Repository: incubator-juneau-website
Updated Branches:
  refs/heads/asf-site 906dc702a -> 96d47701f


Add HtmlDocSerializer example to about page.

Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/commit/96d47701
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/tree/96d47701
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/diff/96d47701

Branch: refs/heads/asf-site
Commit: 96d47701f6d3436dd6bafaeaf9dfd39ba3efb3d2
Parents: 906dc70
Author: JamesBognar <jamesbognar@apache.org>
Authored: Mon Oct 31 12:49:31 2016 -0400
Committer: JamesBognar <jamesbognar@apache.org>
Committed: Mon Oct 31 12:49:31 2016 -0400

----------------------------------------------------------------------
 content/about.html | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/96d47701/content/about.html
----------------------------------------------------------------------
diff --git a/content/about.html b/content/about.html
index dc53d92..6b22383 100644
--- a/content/about.html
+++ b/content/about.html
@@ -56,6 +56,9 @@
 	// &lt;/table&gt;</jc>
 	String html = HtmlSerializer.<jsf>DEFAULT</jsf>.serialize(p);
 	
+	<jc>// Same as Html, but wraps it in HTML and BODY elements with page title/description/links:
+	String htmlDoc = HtmlDocSerializer.<jsf>DEFAULT</jsf>.serialize(p);
+
 	<jc>// Produces:
 	// name=John+Smith&amp;age=$n(21)</jc>
 	String urlEncoding = UrlEncodingSerializer.<jsf>DEFAULT</jsf>.serialize(p);


Mime
View raw message