From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout.scc.kit.edu (scc-mailout.scc.kit.edu [129.13.185.201]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p93L5wAw025555 for ; Mon, 3 Oct 2011 17:05:59 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-01.scc.kit.edu with esmtp (Exim 4.72 #1) id 1RApi0-00072a-9L; Mon, 03 Oct 2011 23:05:56 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1RApi0-0005TP-C5 for tech@mdocml.bsd.lv; Mon, 03 Oct 2011 23:05:56 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1RApi0-0002my-9g for tech@mdocml.bsd.lv; Mon, 03 Oct 2011 23:05:56 +0200 Received: from schwarze by usta.de with local (Exim 4.72) (envelope-from ) id 1RApi0-0003So-8p for tech@mdocml.bsd.lv; Mon, 03 Oct 2011 23:05:56 +0200 Date: Mon, 3 Oct 2011 23:05:56 +0200 From: Ingo Schwarze To: tech@mdocml.bsd.lv Subject: Re: HTML fragment mode. Message-ID: <20111003210556.GB20053@iris.usta.de> References: <4E898B8B.4030404@bsd.lv> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E898B8B.4030404@bsd.lv> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Kristaps, > Enclosed is a small patch that, with -Ofragmnet, has -T[x]html only > emit the CONTENT of an HTML file, not the file stuff itself > (DOCTYPE, HTML, HEAD, BODY). It also makes a new top-level node, >
, so that it's easier to embed mandoc -Thtml > output in other pages. Thus, consider this SSI pseudo-code: > > > blahblah > > > > > > > > This would be useful for mandoc.cgi, for example, because it > wouldn't have to bundle all the extra HTML crap (headers, footers, > etc.) nor would it need to use templates, worry about hardcoded CSS > paths, etc. Clean! > > Thoughts? >From briefly reading the patch, this makes sense to me. In the manual, i'd probably add another sentence though briefly stating what this option is useful for. Yours, Ingo -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv