<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 30/06/2013, at 12:21 AM, Alexander Zhuravlev <<a href="mailto:a.zhuravlev@gmail.com">a.zhuravlev@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite">Just wondering if anyone can point me in the direction of an ehtml<br>reference/guide/source code listing.  Acronym overlap means most<br>google searches return pages about the extended character set, and<br>both of the links at<br><a href="http://cean.process-one.net/packages/index.yaws?action=detail&name=ehtml">http://cean.process-one.net/packages/index.yaws?action=detail&name=ehtml</a><br>do not seem to work.<br></blockquote><br>Are you asking about ehtml from yaws? If this is a case, you can<br>find its description on page #12 of the Yaws Reference documentation:<br><a href="http://hyber.org/yaws.pdf">http://hyber.org/yaws.pdf</a><br></blockquote><br></div><div>Yes, using ehtml to output structured content in .yaws pages.  The manual reads thusly:</div><br><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div style="text-align: left;">The second way to generate output is by returning a tuple {ehtml, EHTML}. The term EHTML must adhere</div></div><div><div style="text-align: left;">to the following structure:</div></div><div><div style="text-align: left;"><br></div></div><div><div style="text-align: left;">EHTML = [EHTML] | {TAG, Attrs, Body} | {TAG, Attrs} | {TAG} | {Module,Fun,[Args]} | fun/0 | binary() | character()</div></div><div><div style="text-align: left;">TAG = atom()</div></div><div><div style="text-align: left;">Attrs = [{HtmlAttribute,Value}]</div></div><div><div style="text-align: left;">HtmlAttribute = atom()</div></div><div><div style="text-align: left;">Value = string() | atom() | {Module,Fun,[Args]} | fun/0</div></div><div><div style="text-align: left;">Body = EHTML</div></div></blockquote><div style="text-align: left;"><br></div><div>… which suggests that it is pretty agnostic about what gets thrown in.  I just need to be careful about reserved words like 'div'.</div><div><br></div><div>Specifically, I want to know if it is possible to 'tune' the HTML generation so that it produces source that is neat and tidy.</div></body></html>